[LLVMbugs] [Bug 13255] New: rewrite includes isn't including everything needed to duplicate in the .sh script

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 2 13:23:57 PDT 2012


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

             Bug #: 13255
           Summary: rewrite includes isn't including everything needed to
                    duplicate in the .sh script
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: echristo at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Compiling this:


#include "llvm/ADT/StringMap.h"

int
main(void)
{
    llvm::StringMap<long> smap;
    smap["a"] = 123;
    for (auto &it : smap) {
        asm("" :: "r" (it.first()), "r" (it.second));
    }
    return 0;
}

in c++11 mode should crash in the backend. The resultant .sh file won't compile
the .ii file since the -D options aren't included.

Original compilation line:

clang -c foo.cpp -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -std=c++11

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