public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57025] New: Solaris g++ defines __STDC_VERSION__=199901L
@ 2013-04-21 14:04 jdemeyer at cage dot ugent.be
  2013-04-21 14:47 ` [Bug c++/57025] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jdemeyer at cage dot ugent.be @ 2013-04-21 14:04 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025

             Bug #: 57025
           Summary: Solaris g++ defines __STDC_VERSION__=199901L
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jdemeyer@cage.ugent.be
            Target: sparc-sun-solaris2.10


With GCC 4.7.2, when compiling C++ code in Solaris, the macro __STDC_VERSION__
is defined to be 199901L:

$ gcc -std=c++98 -x c++ /dev/null -E -dD |grep STDC
#define __STDC__ 1
#define __STDC_HOSTED__ 1
#define __STDC_VERSION__ 199901L

Despite this, the "restrict" keyword is not understood. This looks like a bug
to me: if the compiler defines __STDC_VERSION__=199901L, it should understand
C99 features like the "restrict" keyword. This only happens on Solaris as far
as I can tell.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-22 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-21 14:04 [Bug c++/57025] New: Solaris g++ defines __STDC_VERSION__=199901L jdemeyer at cage dot ugent.be
2013-04-21 14:47 ` [Bug c++/57025] " redi at gcc dot gnu.org
2013-04-21 14:50 ` redi at gcc dot gnu.org
2013-04-21 14:53 ` jdemeyer at cage dot ugent.be
2013-04-21 15:09 ` redi at gcc dot gnu.org
2024-05-22 15:09 ` alan.coopersmith at oracle dot com
2024-05-22 15:15 ` ro at CeBiTec dot Uni-Bielefeld.DE
2024-05-22 20:27 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).