This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r110167 - in /branches/gcc-3_4-branch/gcc: cp/C...
- From: reichelt at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 24 Jan 2006 11:38:10 -0000
- Subject: r110167 - in /branches/gcc-3_4-branch/gcc: cp/C...
Author: reichelt
Date: Tue Jan 24 11:38:06 2006
New Revision: 110167
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110167
Log:
PR c++/16829
* decl.c (start_preparsed_function): Check default arguments
unconditionally.
* name-lookup.c (pushdecl_maybe_friend): Check default arguments
of all functions and function templates.
* parser.c (cp_parser_late_parsing_default_args): Check default
arguments.
* decl2.c (check_default_args): Set missing default arguments to
error_mark_node.
* g++.dg/other/default2.C: New test.
* g++.dg/other/default3.C: New test.
Added:
branches/gcc-3_4-branch/gcc/testsuite/g++.dg/other/default2.C
branches/gcc-3_4-branch/gcc/testsuite/g++.dg/other/default3.C
Modified:
branches/gcc-3_4-branch/gcc/cp/ChangeLog
branches/gcc-3_4-branch/gcc/cp/decl.c
branches/gcc-3_4-branch/gcc/cp/decl2.c
branches/gcc-3_4-branch/gcc/cp/name-lookup.c
branches/gcc-3_4-branch/gcc/cp/parser.c
branches/gcc-3_4-branch/gcc/testsuite/ChangeLog