Debian Codegraph @

gcc/testsuite/g++.dg/other/crash-12.C

raw
1 // Origin: PR c++/43953
2
3 template<typename T,
4 typename U,
5 typename T::type V> class bad;
6
7 // partial specialization
8 // for T = U
9 template<typename T, typename T::type V>
10 class bad<T, T, V>
11 {
12 public:
13 static void foo() {}
14 };
15
16 struct dummy
17 {
18 typedef int type;
19 };
20
21 int main()
22 {
23 bad<dummy, dummy, 0>::foo();
24 }
25