[LLVMbugs] [Bug 13344] New: [Windows] __cdecl is not equivalent to "default calling convention" anymore
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 12 06:38:36 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13344
Bug #: 13344
Summary: [Windows] __cdecl is not equivalent to "default
calling convention" anymore
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
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
Looks like my r160121 change has regressed:
$ cat cdecl.cpp
void foo();
void __cdecl foo();
$ clang++ -c cdecl.cpp && echo "OK"
OK
$ clang++ -Xclang -cxx-abi -Xclang microsoft -c cdecl.cpp && echo "OK"
cdecl.cpp:2:14: error: function declared 'cdecl' here was previously declared
without calling convention
void __cdecl foo();
^
cdecl.cpp:1:6: note: previous declaration is here
void foo();
^
1 error generated.
$ cl -nologo -c cdecl.cpp && echo "OK"
cdecl.cpp
OK
--
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