]> gcc.gnu.org Git - gcc.git/commit
re PR c++/16829 (default parameter can be not one of the last in function)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 19 Jan 2006 09:51:57 +0000 (09:51 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 19 Jan 2006 09:51:57 +0000 (09:51 +0000)
commit607c855eb7fbf6b876250fe3e580125e7bf438d6
treeb6b738bfc0105ccb758373d329ad2bae1de1c072
parent1f0f7cebf9eccfa3c9bac5c2602a261c487c86d2
re PR c++/16829 (default parameter can be not one of the last in function)

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.

From-SVN: r109950
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/default3.C [new file with mode: 0644]
This page took 0.052711 seconds and 5 git commands to generate.