re PR c++/27495 (ICE using "." instead of "->")

PR c++/27495
	* g++.dg/other/pr27495.C: New.

From-SVN: r115558
This commit is contained in:
Steve Ellcey 2006-07-18 17:03:38 +00:00 committed by Steve Ellcey
parent 9c23e505d8
commit 1e76e76b47
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-07-18 Steve Ellcey <sje@cup.hp.com>
PR c++/27495
* g++.dg/other/pr27495.C: New.
2006-07-18 Olivier Hainque <hainque@adacore.com>
* gnat.dg/outer_agg_bitfield_constructor.adb: New test.

View File

@ -0,0 +1,8 @@
// Test to make sure we do not ICE on this invalid program.
struct A
{
template<int> void foo();
void bar() { this.A::foo<0>(); } // { dg-error "" }
};