public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9403: parse error on template keyword used for disambiguation
@ 2003-01-23 3:16 Giovanni Bajo
0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2003-01-23 3:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9403; it has been noted by GNATS.
From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <levon@movementarian.org>,
<gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<gdr@integrable-solutions.com>,
<nobody@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>
Cc:
Subject: Re: c++/9403: parse error on template keyword used for disambiguation
Date: Thu, 23 Jan 2003 04:09:13 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0003_01C2C295.301A97C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database=3D=
gcc&pr=3D9403
The reduced code snippet is legal if and only if the 'template' keyword =
is used. EDG agrees.
------=_NextPart_000_0003_01C2C295.301A97C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><A=20
href=3D"http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&a=
mp;database=3Dgcc&pr=3D9403">http://gcc.gnu.org/cgi-bin/gnatsweb.pl?c=
md=3Dview%20audit-trail&database=3Dgcc&pr=3D9403</A></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The reduced code snippet is legal if =
and only if=20
the 'template' keyword is used. EDG =
agrees.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0003_01C2C295.301A97C0--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9403: parse error on template keyword used for disambiguation
@ 2003-01-22 16:39 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-22 16:39 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gdr, levon, nobody
Old Synopsis: parse error on boost is_function.hpp
New Synopsis: parse error on template keyword used for disambiguation
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 22 16:39:27 2003
State-Changed-Why:
Confirmed, that is I can confirm that it does no longer
compile, but I don't know for sure whether the code is
legal. A further extract is this:
------------------------------
template<bool>
struct Outer {
template <typename T> struct Inner {};
};
template <bool b, typename T>
struct X : Outer<b>::template Inner<T>
{};
-----------------------------
This used to compile with the old parser, but does not
any more. It _does_ compile, however, when you drop the
"template" in Outer<b>::template Inner<T>.
Gaby, you knew about this stuff. What's legal and what is
not?
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9403
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-23 3:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23 3:16 c++/9403: parse error on template keyword used for disambiguation Giovanni Bajo
-- strict thread matches above, loose matches on Subject: below --
2003-01-22 16:39 bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).