[LLVMbugs] [Bug 13172] New: AlignOf.h not compatible with -std=c++0x

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 21 18:28:50 PDT 2012


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

             Bug #: 13172
           Summary: AlignOf.h not compatible with -std=c++0x
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: scott+llvm+bugzilla at pakin.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8741
  --> http://llvm.org/bugs/attachment.cgi?id=8741
Plugin excerpt that fails to compile with g++ -std=c++0x

LLVM revision: 158951
GCC version: 4.7.0

After updating to the latest LLVM trunk, g++ no longer compiles my plugin
(although it does still work with clang++):

    $ clang++ -I$HOME/llvm/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++0x -c problem.cpp
    $ g++ -I$HOME/llvm/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++0x -c problem.cpp 
    In file included from
/home/pakin/llvm/include/llvm/Support/Allocator.h:17:0,
                     from /home/pakin/llvm/include/llvm/ADT/StringMap.h:18,
                     from problem.cpp:1:
    /home/pakin/llvm/include/llvm/Support/AlignOf.h:94:1: error: expected
identifier before numeric constant
    /home/pakin/llvm/include/llvm/Support/AlignOf.h:94:1: error: expected ‘,’
or ‘...’ before numeric constant
    /home/pakin/llvm/include/llvm/Support/AlignOf.h:94:1: error: expected ‘;’
at end of member declaration
    /home/pakin/llvm/include/llvm/Support/AlignOf.h:94:1: error: ‘type’ does
not name a type
    ...

-- Scott

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