[LLVMbugs] [Bug 6592] New: Fake error concerning: cannot combine with previous 'extern' declaration specifier
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 12 05:24:40 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6592
Summary: Fake error concerning: cannot combine with previous
'extern' declaration specifier
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Fons.Rademakers at cern.ch
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4489)
--> (http://llvm.org/bugs/attachment.cgi?id=4489)
Source file exhibiting the problem
The attached aap.cxx compiles fine with g++ (and for that matter any other know
compiler), but not with clang++. Do:
clang++ -c aap.cxx
In file included from core/editline/src/TTermManip.cxx:1:
In file included from core/editline/src/TTermManip.cxx:12:
core/editline/src/TTermManip.h:19:12: error: cannot combine with previous
'extern' declaration specifier
extern "C" typedef int (*PutcFunc_t)(int);
^
core/editline/src/TTermManip.h:99:4: error: unknown type name 'PutcFunc_t'
PutcFunc_t fPutc;
^
In file included from core/editline/src/TTermManip.cxx:1:
core/editline/src/TTermManip.cxx:29:22: error: expected ')'
fPutc((PutcFunc_t)DefaultPutchar),
^
core/editline/src/TTermManip.cxx:29:9: note: to match this '('
fPutc((PutcFunc_t)DefaultPutchar),
^
4 diagnostics generated.
No errors compiling with g++.
--
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