diff options
author | Jason Merrill <jason@redhat.com> | 2002-04-06 17:22:00 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-04-06 17:22:00 -0500 |
commit | 03da52864c9025823694a9b5fabc472c6e534658 (patch) | |
tree | 8a9e5ecc4a811ebf02ef482ab8ec65048bb3c575 /gcc/cp/error.c | |
parent | f1526122aa999c5b5bf05a20755ac300dcbff155 (diff) | |
download | gcc-03da52864c9025823694a9b5fabc472c6e534658.zip gcc-03da52864c9025823694a9b5fabc472c6e534658.tar.gz gcc-03da52864c9025823694a9b5fabc472c6e534658.tar.bz2 |
re PR c++/4934 (Seg fault on legal code)
PR c++/4934
* error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
set before checking it.
From-SVN: r51972
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 499f726..579f584 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1729,7 +1729,7 @@ dump_expr (t, flags) break; case CONVERT_EXPR: - if (VOID_TYPE_P (TREE_TYPE (t))) + if (TREE_TYPE (t) && VOID_TYPE_P (TREE_TYPE (t))) { print_left_paren (scratch_buffer); dump_type (TREE_TYPE (t), flags); |