diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 98a2270875c..5746f24f7a1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-09-09 Paolo Carlini + + PR c++/28293 + * decl.c (grokfield): Check for explicit template argument lists. + 2009-09-09 Jack Howarth PR bootstrap/41180 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9d6b8235f8d..8e2266b6024 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2009-09-09 Uros Bizjak +2009-09-09 Paolo Carlini + + PR c++/28293 + * g++.dg/template/crash91.C: New. + +2009-09-09 Uros Bizjak PR rtl-optimization/39779 * gcc.dg/pr39979.c: New test. diff --git a/gcc/testsuite/g++.dg/template/crash91.C b/gcc/testsuite/g++.dg/template/crash91.C new file mode 100644 index 00000000000..39575cd9f27 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash91.C @@ -0,0 +1,8 @@ +// PR c++/28293 + +template void foo(); + +struct A +{ + typedef void foo<0>(); // { dg-error "explicit template argument list not allowed" } +};