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 <ja...@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