re PR c++/28639 (ICE trying to print error on invalid template parameter)

2007-10-16  Paolo Carlini  <pcarlini@suse.de>

	PR c++/28639
	PR c++/30299
	* g++.dg/template/void12.C: New.
	* g++.dg/template/void13.C: New.

From-SVN: r129392
This commit is contained in:
Paolo Carlini 2007-10-16 22:41:32 +00:00 committed by Paolo Carlini
parent bf98d3b6c0
commit 2e8cd6eb31
3 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/28639
PR c++/30299
* g++.dg/template/void12.C: New.
* g++.dg/template/void13.C: New.
2007-10-16 Paolo Carlini <pcarlini@suse.de>
PR c++/31446

View File

@ -0,0 +1,7 @@
// PR c++/28639
template<void> struct A // { dg-error "not a valid type" }
{
static const int i = 1;
char a[i];
};

View File

@ -0,0 +1,11 @@
// PR c++/30299
struct A
{
int i;
};
template<void> struct B : A // { dg-error "not a valid type" }
{
B() { this->i; }
};