http://llvm.org/bugs/show_bug.cgi?id=20290
Bug ID: 20290
Summary: typeid() does not yield a compile-time constant
address
Product: clang
Version: 3.4
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
static_assert ( & typeid( int ) == & typeid( int ), "" );
As far as I can see, this is valid C++11, and nothing changes for the latest
C++14 draft. It does not include any id-expression, lvalue-to-rvalue
conversion, nor a typeid with polymorphic operand.
Such a construct would provide value-based compile time type identity. GCC
accepts it.
--
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