Debian Codegraph @

clang/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<class T1> class A {
3 template<class T2> class B {
4 template<class T3> void mf1(T3);
5 void mf2();
6 };
7 };
8
9 template<> template<class X>
10 class A<long>::B { }; // #defined-here
11
12 template<> template<> template<class T>
13 void A<int>::B<double>::mf1(T t) { }
14
15 template<> template<> template<class T>
16 void A<long>::B<double>::mf1(T t) { } // expected-error{{does not match}}
17 // expected-note@#defined-here{{defined here}}
18
19 // FIXME: This diagnostic could probably be better.
20 template<class Y> template<>
21 void A<Y>::B<double>::mf2() { } // expected-error{{does not refer}}