[LLVMbugs] [Bug 15014] New: CPP back end generates bad code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 20 16:38:37 PST 2013


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

             Bug #: 15014
           Summary: CPP back end generates bad code
           Product: new-bugs
           Version: 3.2
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rmann at latencyzero.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9897
  --> http://llvm.org/bugs/attachment.cgi?id=9897
source file to reproduce bug

For the enclosed file test5.s, run the following (I've also included the
test5.s.cpp it generated on my machine):

llc -march=cpp test5.s && clang++ `llvm-config --cppflags --ldflags --libs
core` test5.s.cpp

Note the errors:


test5.s.cpp:49:20: error: redefinition of 'FuncTy_0_args'
 std::vector<Type*>FuncTy_0_args;
                   ^
test5.s.cpp:42:20: note: previous definition is here
 std::vector<Type*>FuncTy_0_args;
                   ^
test5.s.cpp:71:16: error: redefinition of 'FuncTy_0'
 FunctionType* FuncTy_0 = FunctionType::get(
               ^
test5.s.cpp:56:16: note: previous definition is here
 FunctionType* FuncTy_0 = FunctionType::get(


It also tries to use FuncTy_0_args without clearing first.

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