This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9154: new parser: poor error message for >> in close of template specifier
- From: tilps at hotmail dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 3 Jan 2003 09:21:56 -0000
- Subject: c++/9154: new parser: poor error message for >> in close of template specifier
- Reply-to: tilps at hotmail dot com
>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: