[LLVMbugs] [Bug 10076] Simple mixup of "abs" and "fabs" leads to 65-line cascade of error messages

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 9 02:15:38 PDT 2011


Bill Wendling <wendling at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |wendling at apple.com
         Resolution|                            |FIXED

--- Comment #1 from Bill Wendling <wendling at apple.com> 2011-08-09 04:15:37 CDT ---
This looks like it's been fixed now:

[Irk:llvm] clang++ -c test.cc
test.cc:2:21: error: use of undeclared identifier 'abs'; did you mean 'fabs'?
int main() { return abs(0); }
In file included from test.cc:1:
In file included from /usr/include/math.h:28:
/usr/include/architecture/i386/math.h:334:16: note: 'fabs' declared here
extern double  fabs( double );
1 error generated.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list