diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-06-12 00:10:26 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-06-12 00:10:26 +0000 |
commit | df7f7b9c7686219e29f33e943b0f876f996d26ce (patch) | |
tree | 87da96dd33e690300579589e86f24f6d0d74888b /gcc/cp/semantics.c | |
parent | 04953ac98677c4d04510078e7637323fbe89ed79 (diff) | |
download | gcc-df7f7b9c7686219e29f33e943b0f876f996d26ce.zip gcc-df7f7b9c7686219e29f33e943b0f876f996d26ce.tar.gz gcc-df7f7b9c7686219e29f33e943b0f876f996d26ce.tar.bz2 |
re PR c++/10432 (ICE in poplevel, at cp/decl.c:1230)
PR c++/10432
* cp-tree.h (finish_declarator): Remove.
* decl.c (cp_finish_decl): Make sure to pop_nested_class even for
erroneous declarations.
* semantics.c (finish_declarator): Remove.
PR c++/10432
* g++.dg/parse/error1.C: New test.
From-SVN: r67804
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index be524be..646cc19 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1739,21 +1739,6 @@ begin_function_definition (decl_specs, attributes, declarator) return 1; } -/* Finish an init-declarator. Returns a DECL. */ - -tree -finish_declarator (declarator, declspecs, attributes, - prefix_attributes, initialized) - tree declarator; - tree declspecs; - tree attributes; - tree prefix_attributes; - int initialized; -{ - return start_decl (declarator, declspecs, initialized, attributes, - prefix_attributes); -} - /* Finish a translation unit. */ void |