[LLVMbugs] [Bug 12070] New: clang rejects valid program with -cxx-abi microsoft
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 22 17:16:36 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12070
Bug #: 12070
Summary: clang rejects valid program with -cxx-abi microsoft
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.cc
class A {
public:
typedef int (A::*Foo)(int);
};
hummer:src thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -c test.cc -Xclang
-cxx-abi -Xclang microsoft
test.cc:3:19: error: incomplete type 'A' where a complete type is required
typedef int (A::*Foo)(int);
^
test.cc:1:7: note: definition of 'A' is not complete until the closing '}'
class A {
^
1 error generated.
Works fine without -cxx-abi.
--
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