c++/9154: new parser: poor error message for >> in close of template specifier

tilps@hotmail.com tilps@hotmail.com
Fri Jan 3 09:26:00 GMT 2003


>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:



More information about the Gcc-prs mailing list