[LLVMbugs] [Bug 11869] New: `extern "C" extern void foo(); ` shouldn't compile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 27 02:16:10 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: timurrrr at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list