re PR c++/28114 (ICE with struct definition in argument of template function)
PR c++/28114 * g++.dg/other/pr28114.C: New. From-SVN: r115025
This commit is contained in:
parent
f340b6fc9b
commit
adf2ac06f4
|
@ -1,3 +1,8 @@
|
|||
2006-06-26 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
PR c++/28114
|
||||
* g++.dg/other/pr28114.C: New.
|
||||
|
||||
2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc.c-torture/compile/20060625-1.c: New test.
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
// Test to make sure we do not ICE on this invalid program.
|
||||
|
||||
template<int> void foo(struct {}*); // { dg-error "" }
|
||||
|
||||
void bar()
|
||||
{
|
||||
foo<0>(0); // { dg-error "" }
|
||||
}
|
Loading…
Reference in New Issue