http://llvm.org/bugs/show_bug.cgi?id=12658
Bug #: 12658
Summary: Fail to detect instantiating abstract type
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 8450
--> http://llvm.org/bugs/attachment.cgi?id=8450
test case
Clangs fails to detect the error in the following code:
#include <stdio.h>
class C {
public:
int x;
C(int v) :x(v) {}
virtual void f() = 0;
};
int main(int argc, char** argv) {
printf("c.x=%d\n", C(99).x); // should raise an error
}
clang version 3.1 (branches/release_31 154941)
--
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