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++/9188: [New parser] Strange wording of error message


>Number:         9188
>Category:       c++
>Synopsis:       [New parser] Strange wording of error message
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 06 06:56:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
present CVS after the new parser merge
>Description:
This erroneous code
--------------------------
template <int dim> struct X {
    static int i;
};

template <> int X<1>::i(1)   // missing semicolon
template <> int X<2>::i(2);
---------------------------yields
  tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -o /dev/null -c bug2.cc
  bug2.cc:6: error: expected expected `;'
                    ^^^^^^^^^^^^^^^^^Note the duplicate word "expected".

As this is not terribly important, I lower the priority.

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