c++/216: parse error when using option '-pedantic' on templated code

hubert@discreet.com hubert@discreet.com
Tue May 16 14:56:00 GMT 2000


>Number:         216
>Category:       c++
>Synopsis:       parse error when using option '-pedantic' on templated code
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue May 16 14:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Hubert
>Release:        gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) AND gcc version 2.96 20000410 (experimental)
>Organization:
>Environment:
Linux and SGI
>Description:
<See attached file>

"g++ -c -ansi foo.cxx" works fine, but

"g++ -c -ansi -pedantic foo.cxx" gives us:

foo.cxx: In method `void Bar<B>::func()':
foo.cxx:19: parse error before `;'
>How-To-Repeat:
See description
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cxx"

dGVtcGxhdGUgPGNsYXNzIEE+CmNsYXNzIEZvbyB7CiAgIApwdWJsaWM6CiAgdHlwZWRlZiBpbnQg
VEE7Cn07CgoKdGVtcGxhdGUgPGNsYXNzIEI+CmNsYXNzIEJhciB7CnB1YmxpYzoKICAgdm9pZCBm
dW5jKCk7Cn07CgoKdGVtcGxhdGUgPGNsYXNzIEI+CnZvaWQgQmFyPEI+OjpmdW5jKCkKewogIEZv
bzxCKj46OlRBIHZhbDsKfQoKCiAK


More information about the Gcc-prs mailing list