diff options
author | Steve Ellcey <sje@cup.hp.com> | 2006-06-26 21:25:23 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2006-06-26 21:25:23 +0000 |
commit | adf2ac06f40a8d239c016d7ecc85ad74c5254a95 (patch) | |
tree | 227478492016b6016b2bfea7470690218a82e85e | |
parent | f340b6fc9b01ed074b92c8f386d1d85fa96ee4e3 (diff) | |
download | gcc-adf2ac06f40a8d239c016d7ecc85ad74c5254a95.zip gcc-adf2ac06f40a8d239c016d7ecc85ad74c5254a95.tar.gz gcc-adf2ac06f40a8d239c016d7ecc85ad74c5254a95.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/pr28114.C | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1e1480..8dc8002 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C new file mode 100644 index 0000000..05aeebb --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr28114.C @@ -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 "" } +} |