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

             Bug #: 11869
           Summary: `extern "C" extern void foo();` shouldn't compile
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


$ cat double_extern.cpp 
extern "C" extern void foo();

$ g++ -c double_extern.cpp 
double_extern.cpp:1: error: invalid use of ‘extern’ in linkage specification

$ clang++ -c double_extern.cpp
OK

$ clang++ --version
clang++ --version
clang version 3.1 (trunk 145532)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Also I know that this bug is still present in Clang as a similar code was found
in AddressSanitizer which is a part of Clang codebase.

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