[Bug c++/46538] [4.3/4.4./4.5 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 15:20:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46538

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-07 15:20:30 UTC ---
Author: jakub
Date: Tue Dec  7 15:20:25 2010
New Revision: 167543

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167543
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_5-branch/gcc/testsuite/g++.dg/other/error34.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/decl.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list