Commit 8fcd79cb by Mark Mitchell Committed by Mark Mitchell

re PR c++/27102 (ICE with invalid class name in function template)

	PR c++/27102
	* typeck2.c (cxx_incomplete_type_diagnostic): Handle
	TYPENAME_TYPE.
	PR c++/27102
	* g++.dg/template/crash47.C: New test.

From-SVN: r113320
parent 9613eaff
2006-04-27 Mark Mitchell <mark@codesourcery.com>
PR c++/27102
* typeck2.c (cxx_incomplete_type_diagnostic): Handle
TYPENAME_TYPE.
2006-04-24 Mark Mitchell <mark@codesourcery.com>
PR c++/27292
......
......@@ -406,6 +406,10 @@ cxx_incomplete_type_diagnostic (tree value, tree type, int diag_type)
p_msg ("invalid use of template type parameter");
break;
case TYPENAME_TYPE:
p_msg ("invalid use of dependent type %qT", type);
break;
case UNKNOWN_TYPE:
if (value && TREE_CODE (value) == COMPONENT_REF)
goto bad_member;
......
2006-04-27 Mark Mitchell <mark@codesourcery.com>
PR c++/27102
* g++.dg/template/crash47.C: New test.
2006-04-27 Dirk Mueller <dmueller@suse.de>
* gcc.target/i386/sse-7.c: build with -msse.
// PR c++/27102
template<typename T> void T::X::foo() {} // { dg-error "invalid" }
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