c++/3385: -std=foo doesn't work with C++

Daniel Elstner daniel.elstner@gmx.net
Fri Jun 22 17:36:00 GMT 2001


>Number:         3385
>Category:       c++
>Synopsis:       -std=foo doesn't work with C++
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 17:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Elstner
>Release:        gcc-3.0 (release)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When -std=foo is given g++ doesn't recognize most C++ constructs.
Includes of C++ specific headers do fail, too. For some odd reason
the new-style casts do still work.

The same code works with -ansi but not when using -std=iso9899:1990.

Configured with: ../../gcc/configure --prefix=/usr --enable-threads=posix --enable-version-specific-runtime-libs --disable-checking --enable-languages=f77,objc,c++
>How-To-Repeat:
g++ -std=c99 -c c99_test.cc
>Fix:

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

CiNpbmNsdWRlIDx0eXBlaW5mbz4KI2luY2x1ZGUgPHN0cmluZz4KCm5hbWVzcGFjZSBBIHsKICAg
IGludCBmKCk7Cn0KCmludCBBOjpmKCkKewogICAgcmV0dXJuIDA7Cn0KCmludCBtYWluIChpbnQg
YXJnYywgY2hhciAqYXJndltdKQp7CiAgICBpbnQgaSA9IEE6OmYoKTsKICAgIHJldHVybiBpOwp9
Cgo=



More information about the Gcc-bugs mailing list