From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31797 invoked by alias); 19 Jan 2006 09:56:50 -0000 Received: (qmail 31772 invoked by alias); 19 Jan 2006 09:56:48 -0000 Date: Thu, 19 Jan 2006 09:56:00 -0000 Message-ID: <20060119095648.31771.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/16829] default parameter can be not one of the last in template function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg01906.txt.bz2 List-Id: ------- Comment #10 from reichelt at gcc dot gnu dot org 2006-01-19 09:56 ------- Subject: Bug 16829 Author: reichelt Date: Thu Jan 19 09:56:44 2006 New Revision: 109952 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109952 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-4_1-branch/gcc/testsuite/g++.dg/other/default2.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/default3.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/decl.c branches/gcc-4_1-branch/gcc/cp/decl2.c branches/gcc-4_1-branch/gcc/cp/name-lookup.c branches/gcc-4_1-branch/gcc/cp/parser.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16829