------- Comment #6 from reichelt at gcc dot gnu dot org  2006-08-03 02:41 
-------
Subject: Bug 28274

Author: reichelt
Date: Thu Aug  3 02:41:33 2006
New Revision: 115895

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115895
Log:
        PR c++/28274
        * decl.c (duplicate_decls): Call check_default_args here.
        (start_preparsed_function): Do not call check_default_args.
        * name-lookup.c (pushdecl_maybe_friend): Only call
        check_default_args if duplicate_decls got bypassed.

        * g++.dg/other/default5.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/default5.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/cp/name-lookup.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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

Reply via email to