Debian Codegraph @

gcc/testsuite/g++.dg/template/this-targ1.C

raw
1 // PR c++/47904
2
3 template <bool>
4 struct S
5 {
6 };
7
8 template <class T>
9 class U
10 {
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 }
22 };
23