Commit 5082a355 by Mark Mitchell Committed by Mark Mitchell

error.c (dump_expr): Don't crash on INDIRECT_REFs whose operands don't have types.

	* error.c (dump_expr): Don't crash on INDIRECT_REFs whose operands
	don't have types.

From-SVN: r26300
parent d4ca58b3
1999-04-08 Mark Mitchell <mark@codesourcery.com>
* error.c (dump_expr): Don't crash on INDIRECT_REFs whose operands
don't have types.
* search.c (template_self_reference_p): Tweak.
1999-04-07 Mark Mitchell <mark@codesourcery.com>
......
......@@ -1564,6 +1564,7 @@ dump_expr (t, nop)
else
{
if (TREE_OPERAND (t,0) != NULL_TREE
&& TREE_TYPE (TREE_OPERAND (t, 0))
&& NEXT_CODE (TREE_OPERAND (t, 0)) == REFERENCE_TYPE)
dump_expr (TREE_OPERAND (t, 0), nop);
else
......
// Build don't link:
// Origin: Miniussi <miniussi@ilog.fr>
template <class O>
struct Str {
Str(int& val= (*new int()));
};
template<class O>
Str<O>::Str(int& val) {}
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