http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #12 from Csaba Ráduly ---
Doh. Disregard me.
$ g++ -std=c++11 -E -dM -x c++ /dev/null | egrep -i 'ansi|std|plus'
#define __STDC_HOSTED__ 1
#define __STRICT_ANSI__ 1
#define __cplusplus 201103L
#define __stdcall __attribute__((__stdcal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
Csaba Ráduly changed:
What|Removed |Added
CC||csaba_22 at yahoo dot co.uk
--- Comment #1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #10 from Jakub Jelinek ---
Note, you've listed also plenty of non-standard functions like asiprintf, I
guess those certainly shouldn't be available for __STRICT_ANSI__, even for
-std=c99, -std=c11 or -std=c++11.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #9 from Jonathan Wakely ---
Definitely a Cygwin bug, their header should test:
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus
>= 201103L)
That way the functions will be defined for any -std=gnuNN mode,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #8 from Jakub Jelinek ---
Sure, but with -std=gnu++11 __STRICT_ANSI__ isn't defined (as intended).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #7 from zosrothko at orange dot fr ---
(In reply to Jakub Jelinek from comment #6)
> As C++ isn't C, obviously it g++ -std=c++11 doesn't define __STDC_VERSION__
> macro, but just defines
> __STRICT_ANSI__ 1
> __cplusplus 201103L
> Shoul
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #5 from zosrothko at orange dot fr ---
This is a snipet from usr/include/stdio.h
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L)
#ifndef _REENT_ONLY
int _EXFUN(asiprintf, (char **, const char *, ...)
_
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #4 from zosrothko at orange dot fr ---
(In reply to Jakub Jelinek from comment #2)
> stdio.h is provided by cygwin, not GCC, so IMHO you should report it there
> instead.
and by the way, it compiles fine when using -std=gnu++11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #3 from zosrothko at orange dot fr ---
(In reply to Jakub Jelinek from comment #2)
> stdio.h is provided by cygwin, not GCC, so IMHO you should report it there
> instead.
on the cygwin mailling list, cygwin states that it is a bug in g
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2 f
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #1 from zosrothko at orange dot fr ---
This issue applies also to other C functions like strdup, realpath, strerror_r,
strsep, etc..
12 matches
Mail list logo