diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-07-24 12:56:34 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-07-24 12:56:34 +0000 |
commit | ee20f4ee2bf2ba0c426df96934af2a4975c0b5fa (patch) | |
tree | 774770548b79188ad2437767715ab4c312131569 | |
parent | a4878735c25fe9d7762e8a5144d1efbda3a7ec33 (diff) | |
download | gcc-ee20f4ee2bf2ba0c426df96934af2a4975c0b5fa.zip gcc-ee20f4ee2bf2ba0c426df96934af2a4975c0b5fa.tar.gz gcc-ee20f4ee2bf2ba0c426df96934af2a4975c0b5fa.tar.bz2 |
* decl.c (reshape_init): Remove unreachable code.
From-SVN: r69741
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 337b372..308b70c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-07-24 Nathan Sidwell <nathan@codesourcery.com> + + * decl.c (reshape_init): Remove unreachable code. + 2003-07-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> PR c++/11513 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 7f36c99..6d2f097 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7465,13 +7465,7 @@ reshape_init (tree type, tree *initp) old_init_value = (TREE_CODE (*initp) == TREE_LIST ? TREE_VALUE (*initp) : old_init); - /* For some parse errors, OLD_INIT_VALUE may be NULL. */ - if (!old_init_value) - { - my_friendly_assert (TREE_CODE (old_init) == TREE_LIST, 20021202); - TREE_VALUE (old_init) = error_mark_node; - return old_init; - } + my_friendly_assert (old_init_value, 20030723); /* If the initializer is brace-enclosed, pull initializers from the enclosed elements. Advance past the brace-enclosed initializer |