[Bug c++/14355] [3.4/3.5 Regression] ICE in cxx_incomplete_type_diagnostic

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Tue Mar 2 02:24:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-03-02 02:24 -------
Mark, I analyzed this. cxx_incomplete_type_diagnostic was ICEing because it was 
never supposed to get a typename_type (it must have resolved before). You fixed 
the real bug in PR14377. 

The only reason why I was keeping this around is to add some checking code to 
tsubst_build_and_copy (case CALL_EXPR) so that it would check valid incoming 
call expressions (to catch problems earlier). For instance, there is a piece of 
code there which seems cut & pasted from the parser, and you just modified it:

	if (koenig_p
	    && (is_overloaded_fn (function)
		|| DECL_P (function)
		|| TREE_CODE (function) == IDENTIFIER_NODE))
	  function = perform_koenig_lookup (function, call_args);

The problem is, I don't follow the code well enough to add checking to it. So, 
it doesn't really matter.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14355



More information about the Gcc-bugs mailing list