re PR c++/3152 (g++-3.0 segfaults when compiling program using -g)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 26 Jul 2001 08:07:56 +0000 (08:07 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 26 Jul 2001 08:07:56 +0000 (08:07 +0000)
commit969fd501d60879e8cb717bc6be07ad39e5067f18
treee75ee3f6066eb226d294e5a52b6c3511f4d79eff
parent4d10215152f92dd3ee79f114ba7dd6acc5e43b54
re PR c++/3152 (g++-3.0 segfaults when compiling program using -g)

cp:
* decl.c (last_function_parm_tags): Remove.
(current_function_parm_tags): Remove.
(init_decl_processing): Adjust.
(start_function): Adjust.
(store_parm_decls): Adjust.

PR c++/3152
* decl.c (grokdeclarator): Detect when a function typedef is
declaring a function, and create last_function_parms correctly.
testsuite:
* g++.old-deja/g++.other/crash42.C: New test.

From-SVN: r44387
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/crash42.C [new file with mode: 0644]