Debian Codegraph @

gcc/testsuite/g++.dg/template/non-dependent32.C

raw
1 // PR c++/114994
2 // { dg-do compile { target c++11 } }
3
4 struct udl_arg {
5 udl_arg operator=(int);
6 };
7
8 void f(udl_arg&&);
9
10 template<class>
11 void g() {
12 udl_arg x;
13 f(x=42); // { dg-bogus "cannot bind" }
14 }
15
16 int main() {
17 g<int>();
18 }