From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28580 invoked by alias); 7 Oct 2002 16:42:34 -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 28560 invoked by uid 61); 7 Oct 2002 16:42:34 -0000 Date: Mon, 07 Oct 2002 09:42:00 -0000 Message-ID: <20021007164234.28559.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, m.doppler@icoserve.com, nobody@gcc.gnu.org, p.klotz@icoserve.com From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, m.doppler@icoserve.com, nobody@gcc.gnu.org, p.klotz@icoserve.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/8158: Compiler rejects legal default parameter X-SW-Source: 2002-10/txt/msg00262.txt.bz2 List-Id: Synopsis: Compiler rejects legal default parameter State-Changed-From-To: open->closed State-Changed-By: nathan State-Changed-When: Mon Oct 7 09:42:34 2002 State-Changed-Why: not a bug. There is a defect report about this. The c++ std does not specify exactly when default args of member functions are parsed. Your default arg contains an unparenthesized comma. It is *very* hard to determine whether a '<' marks the start of a template parm list at that point. The defect report resolves this by saying the default arg consists of the tokens up to the next unparenthesized, unbracketed comma or close paren. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8158