This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]