From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32487 invoked by alias); 22 Oct 2002 23:56:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 32469 invoked by uid 71); 22 Oct 2002 23:56:03 -0000 Date: Tue, 22 Oct 2002 16:56:00 -0000 Message-ID: <20021022235602.32468.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/57: [parser] templates in default arguments Reply-To: Wolfgang Bangerth X-SW-Source: 2002-10/txt/msg00854.txt.bz2 List-Id: The following reply was made to PR c++/57; it has been noted by GNATS. From: Wolfgang Bangerth To: nathan@codesourcery.com, , Cc: Subject: Re: c++/57: [parser] templates in default arguments Date: Tue, 22 Oct 2002 18:47:32 -0500 (CDT) Nathan, the following code has, if I recall correctly, invalid syntax: --------------------------------------------- template struct A { static const int n = 0; }; template struct B { template void foo (int = A::n) { } }; --------------------------------------------- In the default argument parsing, there's a "," not nested inside parentheses. This stops default argument parsing. If you agree, then this report should be closed. Regards Wolfgang ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth