This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7841: gcc accepts illegal member function syntax for template classes
- 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: 17 Sep 2002 18:26:02 -0000
- Subject: Re: c++/7841: gcc accepts illegal member function syntax for template classes
- Reply-to: Martin Sebor <sebor at roguewave dot com>
The following reply was made to PR c++/7841; it has been noted by GNATS.
From: Martin Sebor <sebor@roguewave.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
bangerth@ticam.utexas.edu, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/7841: gcc accepts illegal member function syntax for template classes
Date: Tue, 17 Sep 2002 12:15:08 -0600
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7841
14.6.1, p1 talks about references to unqualfied names of templates,
which inevitably excludes declarations that appear outside of the
class template definition. Also, examples are not normative :)
The test case is ill-formed according to 14.2, p2 and must be
diagnosed by a conforming implementation.
Regards
Martin