Commit 81a5e952 by Steve Ellcey Committed by Steve Ellcey

re PR c++/28304 (ICE looking up invalid member template)

	PR c++/28304
	* g++.dg/other/pr28304.C: New test.

From-SVN: r115522
parent f566cc1b
2006-07-17 Steve Ellcey <sje@cup.hp.com>
PR c++/28304
* g++.dg/other/pr28304.C: New test.
2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
PR other/28251
// Test to make sure we do not ICE on this invalid program.
struct A {};
template<typename T> void A::foo(T) {} // { dg-error "" }
void bar()
{
A::foo(1); // { dg-error "not a member" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment