http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55183
--- Comment #5 from Stephen 2012-11-03 10:48:02 UTC
---
Thanks for the information. The issue is indeed about use of reinterpret_cast
in a constexpr method.
The consensus, according to bug 55039, is that this should not be supported.
Th
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55183
--- Comment #4 from Paolo Carlini 2012-11-02
20:50:48 UTC ---
Thanks Andrew, if the issue would actually be about the reinterpret_cast it's
indeed very well known.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55183
--- Comment #3 from Andrew Pinski 2012-11-02
20:36:12 UTC ---
The functions dealing with the void* internalPointer() can't be
constexpr on GCC 4.6 and Clang 3.2-trunk, even though GCC 4.8-trunk
accepts it, because of the casts required.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55183
Paolo Carlini changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55183
--- Comment #1 from Andrew Pinski 2012-11-02
19:36:36 UTC ---
4.6 does not really do constexpr.
Anyways I think this is a dup of bug 55039 as referenced by the following C++
Defect report:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_a