public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9154: new parser: poor error message for >> in close of template specifier
@ 2003-01-03 9:26 tilps
0 siblings, 0 replies; only message in thread
From: tilps @ 2003-01-03 9:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9154
>Category: c++
>Synopsis: new parser: poor error message for >> in close of template specifier
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 03 01:26:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: tilps@hotmail.com
>Release: gcc version 3.4 20030102 (experimental)
>Organization:
>Environment:
>Description:
c++error.ii
-----------------------------
template <class A>
class a {
};
int main() {
a<a<int>> blah;
}
-----------------------------
when compiled on mainline cvs - gives
-----------------------------
c++error.cc: In function `int main()':
c++error.cc:6: error: template argument 1 is invalid
c++error.cc:6: error: template argument 1 is invalid
c++error.cc:6: error: expected `;'
------------------------------
correct - but nowhere near as nice as previosly
gcc version 3.2.2 20021212 (Debian prerelease) gives
------------------------------
c++error.cc: In function `int main()':
c++error.cc:6: `>>' should be `> >' in template class name
------------------------------
>How-To-Repeat:
g++ -c c++error.ii
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-03 9:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03 9:26 c++/9154: new parser: poor error message for >> in close of template specifier tilps
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).