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:
parent
bf98d3b6c0
commit
2e8cd6eb31
@ -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
|
||||
|
7
gcc/testsuite/g++.dg/template/void12.C
Normal file
7
gcc/testsuite/g++.dg/template/void12.C
Normal 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];
|
||||
};
|
11
gcc/testsuite/g++.dg/template/void13.C
Normal file
11
gcc/testsuite/g++.dg/template/void13.C
Normal 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; }
|
||||
};
|
Loading…
Reference in New Issue
Block a user