[LLVMbugs] [Bug 9185] New: warn when code would be treated differently under gcc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 9 18:20:34 PST 2011


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

           Summary: warn when code would be treated differently under gcc
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Attached are four testcases, all of which print "AAAAAAAAAAAAAAAAAAAAAA" when
compiled correctly, under clang.

Gcc prints "BBBBBBBBBBBBBBBBBBBBBB" for all of them. It would be really cool if
we could emit a warning in cases we can inexpensively detect where gcc is going
to miscompile the code. This would save lots of gcc to clang porting time.

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