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]

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



>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]