From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6981 invoked by alias); 23 Oct 2002 19:36:01 -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 6967 invoked by uid 71); 23 Oct 2002 19:36:00 -0000 Date: Wed, 23 Oct 2002 12:36:00 -0000 Message-ID: <20021023193600.6966.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: c++/57: [parser] templates in default arguments Reply-To: Neil Booth X-SW-Source: 2002-10/txt/msg00892.txt.bz2 List-Id: The following reply was made to PR c++/57; it has been noted by GNATS. From: Neil Booth To: Wolfgang Bangerth Cc: nathan@codesourcery.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/57: [parser] templates in default arguments Date: Wed, 23 Oct 2002 20:31:03 +0100 Wolfgang Bangerth wrote:- > > 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. FWIW Comeau accepts it in strict conforming mode. Neil.