gcc-4.2 : regression for -std=gnu99
Bug #159923 reported by
Erik de Castro Lopo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Suse) |
Invalid
|
Undecided
|
Unassigned | ||
gcc-defaults (Ubuntu) |
Invalid
|
Undecided
|
Matthias Klose |
Bug Description
I am compiling code with "gcc -std=gnu99". According to the gcc man page, gnu99 means the C99 standard with GNU (ie POSIX) extensions.
However, compiling something like:
inline int plus_2 (int x) { return x + 2 ; }
results in the warning:
warning: C99 inline functions are not supported; using GNU89
I am not using gnu89, I'm using gnu99. This worked for gcc-4.1 and earlier.
To post a comment you must log in.
Suse doesn't have a gcc-defaults package. Closing.