bug.i ------ # 1 "bug.c" # 1 "<built-in>" # 1 "<command line>" # 1 "bug.c"
int main () { float f = 1.0; if(isinf(f)) return 1 ; return 0; } ------ Command that does NOT trigger bug gcc bug.c Output of gcc when bug NOT triggered Undefined first referenced symbol in file isinf bug.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status Command that triggers bug gcc -O bug.c Output of gcc when bug IS triggered (None) -- Summary: Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dbb at hadenmead dot com GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26005