mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 03:09:00 +08:00
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:
parent
d4ca58b3e0
commit
5082a35587
@ -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>
|
||||
|
@ -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
|
||||
|
11
gcc/testsuite/g++.old-deja/g++.pt/crash35.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.pt/crash35.C
Normal 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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user