diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f73f2e606442..4df2b2f72011 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-07-18 Steve Ellcey + + PR c++/27495 + * g++.dg/other/pr27495.C: New. + 2006-07-18 Olivier Hainque * gnat.dg/outer_agg_bitfield_constructor.adb: New test. diff --git a/gcc/testsuite/g++.dg/other/pr27495.C b/gcc/testsuite/g++.dg/other/pr27495.C new file mode 100644 index 000000000000..990b1ee5eceb --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr27495.C @@ -0,0 +1,8 @@ + +// Test to make sure we do not ICE on this invalid program. + +struct A +{ + template void foo(); + void bar() { this.A::foo<0>(); } // { dg-error "" } +};