Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/Wnarrowing19.C

raw
1 // PR c++/104823
2 // { dg-do compile { target c++11 } }
3
4 struct S { S(int); };
5 double id(double);
6 template<class> auto f(double v) -> decltype(S{id(v)}); // { dg-error "narrowing" }