http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49171

           Summary: [C++0x][constexpr] Constant expressions support
                    reinterpret_cast
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: daniel.krueg...@googlemail.com
                CC: ja...@redhat.com


gcc 4.7.0 20110521 (experimental) in C++0x mode accepts the following code:

//---
constexpr const char* c = reinterpret_cast<const char*>(0x123);
//---

As of FDIS 5.19 p2 b13 reinterpret_cast is no longer supported in constant
expressions, therefore the code should be rejected.

I'm emphasizing this because gcc should at least try to implement this to find
out, how much code will break because of this change.

Reply via email to