diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-06-15 08:23:01 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-06-15 08:23:01 +0000 |
commit | c4eacf9907eb2298d8552e02910723518203bca0 (patch) | |
tree | aca000b905a2460fc61e96ed4169a7a16ced86ad /gcc/cp/error.c | |
parent | 1bf5fc346a3f74999a27c5ad6ff456bb59c1783b (diff) | |
download | gcc-c4eacf9907eb2298d8552e02910723518203bca0.zip gcc-c4eacf9907eb2298d8552e02910723518203bca0.tar.gz gcc-c4eacf9907eb2298d8552e02910723518203bca0.tar.bz2 |
re PR c++/20678 (Make process stopped)
cp:
PR c++/20678
* error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
null.
testsuite:
PR c++/20678
* g++.dg/other/crash-4.C: New.
From-SVN: r100972
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index c247c97..3d202d6 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1489,7 +1489,8 @@ dump_expr (tree t, int flags) { ob = TREE_OPERAND (ob, 0); if (TREE_CODE (ob) != PARM_DECL - || strcmp (IDENTIFIER_POINTER (DECL_NAME (ob)), "this")) + || (DECL_NAME (ob) + && strcmp (IDENTIFIER_POINTER (DECL_NAME (ob)), "this"))) { dump_expr (ob, flags | TFF_EXPR_IN_PARENS); pp_cxx_arrow (cxx_pp); |