Bug#126703: g++-3.0: <stdio.h> defines _GNU_SOURCE with g++-3.0
Package: g++-3.0
Version: 1:3.0.2-4
Severity: normal
As the title says.
Try this program:
#include <stdio.h>
int main() {
#ifdef _GNU_SOURCE
printf("LOADED\n");
#endif
}
Compile it with "g++-3.0 foo.cpp"
Run it:
$ ./a.out
LOADED
$
This is evil ;-)
Phil.
-- System Information
Debian Release: 3.0
Kernel Version: Linux ceramic 2.2.20 #1 SMP Fri Nov 9 22:12:41 PST 2001 i686 unknown
Versions of the packages g++-3.0 depends on:
ii gcc-3.0 3.0.2-4 The GNU C compiler.
ii gcc-3.0-base 3.0.2-4 The GNU Compiler Collection (base package).
ii libc6 2.2.4-7 GNU C Library: Shared libraries and Timezone
ii libstdc++3-dev 3.0.2-4 The GNU stdc++ library version 3 (developmen
Reply to: