Debian Codegraph @

gcc/testsuite/g++.dg/lookup/operator-7.C

raw
1 // PR c++/100465
2
3 namespace N
4 {
5 struct string
6 {
7 template<typename T>
8 void operator+=(T);
9 };
10
11 struct A {
12 void operator+=(char); // #1
13
14 template<typename T>
15 void f() {
16 string s;
17 s += T();
18 }
19
20 void g() {
21 f<char>();
22 }
23 };
24 } // namespace N
25
26 template<typename T>
27 void operator+=(N::string, T);