[LLVMbugs] [Bug 12961] New: attached testcase compiles in c++ mode, but not in c++11 mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 27 05:47:08 PDT 2012


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

             Bug #: 12961
           Summary: attached testcase compiles in c++ mode, but not in
                    c++11 mode
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pogonyshev at gmx.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8653
  --> http://llvm.org/bugs/attachment.cgi?id=8653
testcase

Testcase is distilled from boost::interprocess::offset_ptr.  It compiles fine
with GCC and clang only in default C++ mode.  However, it fails to compile
clang C++11 mode because then the compiler picks a different operator overload.
 I'm not a language lawyer and _maybe_ the compiler is correct, but then I
doubt new standard revision would change that.

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