[LLVMbugs] [Bug 19015] Warning fixit induces lookup failure + error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 15 17:18:27 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19015

rtrieu at google.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from rtrieu at google.com ---
T.h:7:37: warning: absolute value function 'abs' given an argument of type
      'long' but has parameter of type 'int' which may cause truncation of
value
      [-Wabsolute-value]
inline long MyAbs2(long d) { return ::abs(d); }
                                    ^
T.h:7:37: note: use function 'std::abs' instead
inline long MyAbs2(long d) { return ::abs(d); }
                                    ^~~~~
                                    std::abs
1 warning generated.

-Wabsolute-value no longer generates errors during name lookup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140416/f24f3f2a/attachment.html>


More information about the llvm-bugs mailing list