[LLVMbugs] [Bug 7103] New: Warning when c-style (T)x or functional T(x) cast does anything other than static_cast<T>(x)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 9 00:33:40 PDT 2010


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

           Summary: Warning when c-style (T)x or functional T(x) cast does
                    anything other than static_cast<T>(x)
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


I'd like a -Wpowerful-c-cast (or a better name) that fires when a C-style cast
behaves like a reinterpret_ or const_cast instead of the safer static_cast.

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