[LLVMbugs] [Bug 1077] NEW: Duplicate global vars allowed by llvm-as

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 4 15:02:37 PST 2007


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

           Summary: Duplicate global vars allowed by llvm-as
           Product: tools
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


The test/Feature/constexpr.ll test case is incorrect. It is specifically
allowing this:

%t4 = global int** cast (uint** %t3 to int**)
%t4 = global int** cast (uint** %t3 to int**)

This should produce an error as it is incorrect to allow redefinition of global
vars, even if they have exactly the same type and initializer.

Such redefinition needs to be made illegal in llvm-as. The test case needs to
be modified to not test for allowing redefinition. A new test case should check
that llvm-as generates an error on redefinition.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list