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 <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_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