[LLVMbugs] [Bug 4324] New: GNU89: extern inline may not be followed by regular function

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jun 4 11:17:00 PDT 2009


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

           Summary: GNU89: extern inline may not be followed by regular
                    function
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


GCC accepts the following code, while Clang does not. Code is taken from ratbox
ircd.

extern void func(void);

extern inline void
func(void)
{
}

void
func(void)
{
}

$ cc llvm-crash.c -o llvm-crash -std=gnu89         
llvm-crash.c:9:1: error: redefinition of 'func'
func(void)
^
llvm-crash.c:4:1: note: previous definition is here
func(void)
^
2 diagnostics generated.


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