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
This commit is contained in:
Mark Mitchell 1999-04-08 20:16:51 +00:00 committed by Mark Mitchell
parent d4ca58b3e0
commit 5082a35587
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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>

View File

@ -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

View File

@ -0,0 +1,11 @@
// 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) {}