This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9188: [New parser] Strange wording of error message
- From: bangerth at ticam dot utexas dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 6 Jan 2003 14:50:28 -0000
- Subject: c++/9188: [New parser] Strange wording of error message
- Reply-to: bangerth at ticam dot utexas dot edu
>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: