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

           Summary: clang gets confused by redefinition of extern inline
                    functions.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


--->
/* from c torture. */
inline extern int foo () { return 0; }
inline extern int bar () { return 0; }
inline static int bar () { return foo(); }
---<
$ gcc -W -Wall -pedantic -c -o file.o file.c
no problem

$ clang file.c 
20021120-1.c:4:19: error: redefinition of 'bar'
inline static int bar () { return foo(); }
                  ^
20021120-1.c:3:19: note: previous definition is here
inline extern int bar () { return 0; }
                  ^
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to