This is the mail archive of the gcc-prs@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++/9973: parse error with legal code


>Number:         9973
>Category:       c++
>Synopsis:       parse error with legal code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 06 02:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     scmvs at cs dot cf dot ac dot uk
>Release:        g++ (GCC) 3.2 (mingw special 20020817-1)
>Organization:
>Environment:
Win2K
>Description:
code
========
struct B {
template<class Q> void foo(Q x) { x.apply<int>(); }
};
========
produces

0.cpp: In member function `void B::foo(Q)':
0.cpp:13: parse error before `;' token
>How-To-Repeat:

>Fix:

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