re PR c++/28293 (ICE on invalid typedef)

/cp
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* decl.c (grokfield): Check for explicit template argument lists.

/testsuite
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* g++.dg/template/crash91.C: New.

From-SVN: r151580
This commit is contained in:
Paolo Carlini 2009-09-09 23:31:47 +00:00
parent 75cd1c8f4e
commit e7e5ba0984
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* decl.c (grokfield): Check for explicit template argument lists.
2009-09-09 Jack Howarth <howarth@bromo.med.uc.edu>
PR bootstrap/41180

View File

@ -1,4 +1,9 @@
2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* g++.dg/template/crash91.C: New.
2009-09-09 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/39779
* gcc.dg/pr39979.c: New test.

View File

@ -0,0 +1,8 @@
// PR c++/28293
template<int> void foo();
struct A
{
typedef void foo<0>(); // { dg-error "explicit template argument list not allowed" }
};