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

           Summary: Output note message string is corrupted for
                    err_init_list_variable_narrowing
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Given test.cpp:
struct A {
  unsigned int a;
};
int b = 4;
A var = { b };


clang -std=c++0x test.cpp

note will be:

test.cpp:12:11: note: override this message by inserting an explicit cast
A var = { b};
          ^
          s)atic_cast<unsigned int>(
          ^^^^^^^^^^^^^^^^^^^^^^
            |
        wrong

Same result on Windows and MacOSX

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to