[Bug c++/46538] [4.3/4.4 Regression] ICE: SIGSEGV in cp_make_fname_decl (decl.c:3690) on invalid code when using __PRETTY_FUNCTION__
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 7 18:58:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46538
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-07 18:58:20 UTC ---
Author: jakub
Date: Tue Dec 7 18:58:18 2010
New Revision: 167559
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167559
Log:
Backport from mainline
2010-11-20 Jakub Jelinek <jakub@redhat.com>
PR c++/46538
* decl.c (cp_make_fname_decl): Return error_mark_node if
current_binding_level has already sk_function_parms kind.
* g++.dg/other/error34.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/error34.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/decl.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list