[LLVMbugs] [Bug 11274] Missing warning for -Wconversion with compound assignment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 11 15:13:49 PST 2012


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

Aaron Ballman <aaron at aaronballman.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aaron at aaronballman.com
         Resolution|                            |FIXED

--- Comment #1 from Aaron Ballman <aaron at aaronballman.com> 2012-02-11 17:13:49 CST ---
Works in ToT (r150306)

c:\llvm>clang -fsyntax-only -std=c++11 "C:\Users\Aaron
Ballman\Desktop\test.cpp"
C:\Users\Aaron Ballman\Desktop\test.cpp:10:3: error: no matching function for
call to 'g'
  g(X<42>());
  ^
C:\Users\Aaron Ballman\Desktop\test.cpp:6:13: note: candidate function [with T
= 42] not viable: no known conversion
      from 'X<42>' to 'X<42> &' for 1st argument;
inline void g(X<T>& x) {
            ^
1 error generated.

I get the same error in gcc.

-- 
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