[LLVMbugs] [Bug 10414] New: wrong linkage for function local constant

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 19 16:56:39 PDT 2011


           Summary: wrong linkage for function local constant
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: echristo at gmail.com
                CC: llvmbugs at cs.uiuc.edu

>From 2005-02-27-MarkGlobalConstant.c from the llvm-gcc test suite:

void bar();                                                                     
void foo() {                                                                    
  // CHECK: private unnamed_addr constant                                       
  char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";    

Blah is showing up as internal instead of private. I'm reasonably sure it can't
be accessed outside the module so should be private.

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