[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / this-targ1.C
blob6864be5abbc30a87cad11bad86fd1dbfe023f917
1 // PR c++/47904
3 template <bool>
4 struct S
6 };
8 template <class T>
9 class U
11   T t;
12   int foo () const
13   {
14     S <sizeof (t) == 1> s;
15     return 1;
16   }
17   int bar () const
18   {
19     S <sizeof (t) == 1> s;
20     return 1;
21   }