diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 661f960d775..a43e9335175 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2003-07-11 Mark Mitchell + PR c++/8164 + * g++.dg/template/nontype2.C: New test. + PR c++/10558 * g++.dg/parse/template8.C: New test. diff --git a/gcc/testsuite/g++.dg/template/nontype2.C b/gcc/testsuite/g++.dg/template/nontype2.C new file mode 100644 index 00000000000..fe7e71537b8 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/nontype2.C @@ -0,0 +1,11 @@ +template struct A {}; + +template struct B +{ + void foo() + { + const int i=0; + typedef A< i<=1 > C; + typedef A< i<=2 > C; + } +};