[LLVMbugs] [Bug 3645] New: clang incorrectly rejects "static int a; extern int a; "

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 21 22:06:37 PST 2009


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

           Summary: clang incorrectly rejects "static int a; extern int a;"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Per summary, the following testcase is incorrectly rejected by clang:
static int a;
extern int a;

Per C99 6.2.2p4, the identifier "a" has internal linkage.

Related: bug 3425, a similar sort of error with function redeclarations.


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