c++/2092: parse error in conjunction with templates
post@volker-wysk.de
post@volker-wysk.de
Sun Feb 25 13:26:00 GMT 2001
>Number: 2092
>Category: c++
>Synopsis: parse error in conjunction with templates
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 25 13:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Wysk
>Release: gcc version 2.95.2 20000220 (Debian GNU/Linux) and codesourcery 2001-02-24
>Organization:
>Environment:
Debian Linux on x86
>Description:
gcc reports a parse error. This happens only if the
enclosing function is a template function. See the attached
file for details and a workaround.
I've tried the codesourcery online version of gcc with
was the 2001-02-24 snapshot. The problem was still present.
Btw: What's that "submitter-id" meant to be?
>How-To-Repeat:
gcc gcc-bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="gcc-bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc-bug.cpp"
I2luY2x1ZGUgPGlvc3RyZWFtLmg+CgpzdHJ1Y3QgSyAKewogIHRlbXBsYXRlIDxpbnQgaT4KICB2
b2lkIGZ1bnoodm9pZCkgewogICAgY291dCA8PCBpIDw8IGVuZGw7CiAgfQp9OwoKdm9pZCBnKEsq
IGspCnsKICAvLyBvawogIGstPmZ1bno8MD4oKTsKfQoKdGVtcGxhdGUgPGludCB4Pgp2b2lkIGYo
SyogaykKewogIC8vIHBhcnNlIGVycm9yCiAgay0+ZnVuejwwPigpOwoKICAvLyB3b3JrYXJvdW5k
CiAgLy92b2lkIChLOjoqcCkodm9pZCkgPSAmSzo6ZnVuejwwPjsKICAvLyhrLT4qcCkoKTsKfQoK
bWFpbigpCnsKICBmPDA+KG5ldyBLKTsKfQo=
More information about the Gcc-bugs
mailing list