This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-11-11
[Voted into the WP at the March, 2011 meeting as part of paper N3262.]
One of the bullets in 7.7 [expr.const] paragraph 2 says,
a type conversion from a pointer or pointer-to-member type to a literal type
This appears to prohibit conversion from one pointer type to another; for example,
int x;
constexpr void* p = &x; // ill-formed
This seems excessive and probably unintentional.
Proposed resolution (November, 2010) [SUPERSEDED]:
Change 7.7 [expr.const] paragraph 2 as follows:
a type conversion from a pointer or
pointer-to-member type to a literal an
integral type [Note: a user-defined conversion
invokes a function —end note];
[Note: the proposed resolution of issue 1188 edits this bullet in an incompatible fashion.]