]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/template/nontype5.C
Implement P0732R2, class types in non-type template parameters.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / nontype5.C
CommitLineData
2620d095
KL
1// { dg-do compile }
2
3// Origin: Ivan Godard <igodard@pacbell.net>
4// Volker Reichelt <reichelt@gcc.gnu.org>
5
6// PR c++/13797: ICE invalid nontype template parameter
7
8template <int> struct A
9{
10 typedef A<0> B;
4be5c72c 11 template <B> struct C {}; // { dg-error "class type|incomplete" }
2620d095
KL
12};
13
42b304f1 14A<0> a;