[LLVMbugs] [Bug 20290] New: typeid() does not yield a compile-time constant address

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 13 01:26:20 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: david_work at me.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140713/fdbb8245/attachment.html>


More information about the llvm-bugs mailing list