1 // PR c++/65168
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Waddress -Wno-return-type" }
4 // We shouldn't warn in unevaluated context about the address of a reference
5 // always being true.
6 
7 template <class T, class U>
8 auto f(U&& u) -> decltype(T(u)) { }
9 
main()10 int main()
11 {
12   bool ar[4];
13   f<bool>(ar);
14 }
15