]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/46538 (ICE: SIGSEGV in cp_make_fname_decl (decl.c:3690) on invali...
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Dec 2010 18:58:18 +0000 (19:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Dec 2010 18:58:18 +0000 (19:58 +0100)
commitbf101c01c744e724ccb1eb0fd67fbcc07e8b5622
tree8efed97fb5881c0f6075f6bfa62e8fd0262bc464
parentadcb78e00941f3d6d6e15d22618359613b600cff
backport: re PR c++/46538 (ICE: SIGSEGV in cp_make_fname_decl (decl.c:3690) on invalid code when using __PRETTY_FUNCTION__)

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.

From-SVN: r167559
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/error34.C [new file with mode: 0644]