Debian Codegraph @

gcc/testsuite/g++.dg/template/crash24.C

raw
1 // PR c++/17826
2
3 struct A
4 {
5 template<typename> static int foo();
6 };
7
8 template<int> struct B {};
9
10 template<typename T> void bar()
11 {
12 B<sizeof A::foo<T>()> b1;
13 B<sizeof A::foo<T>()> b2;
14 }