This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9549: [3.4 regression] [New parser] ICE in regenerate_decl_from_template
- From: Martin Sebor <sebor at roguewave dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 3 Feb 2003 19:16:01 -0000
- Subject: Re: c++/9549: [3.4 regression] [New parser] ICE in regenerate_decl_from_template
- Reply-to: Martin Sebor <sebor at roguewave dot com>
The following reply was made to PR c++/9549; it has been noted by GNATS.
From: Martin Sebor <sebor@roguewave.com>
To: bangerth@dealii.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/9549: [3.4 regression] [New parser] ICE in regenerate_decl_from_template
Date: Mon, 03 Feb 2003 12:10:11 -0700
bangerth@dealii.org wrote:
> Old Synopsis: g++ fails to call member template from template class
> New Synopsis: [3.4 regression] [New parser] ICE in regenerate_decl_from_template
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: bangerth
> State-Changed-When: Mon Feb 3 19:00:50 2003
> State-Changed-Why:
> This is not a bug. You need to write
> m.template do_it<T>();
This is incorrect, as is your previous analysis in PR #9510:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9510
This syntax is required only if the right hand side of the
dot operator depends on a template parameter, otherwise it
is optional. Please read 14.2, p4 for more.
Regards
Martin