[Bug c/26005] New: Non-existent function/macro isinf() - correctly rejected by gcc - accepted by gcc -O
dbb at hadenmead dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 28 13:14:00 GMT 2006
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
More information about the Gcc-bugs
mailing list