This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50233] Internal compiler error: in build_value_init_noctor, at cp/init.c:336
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2011 09:52:19 +0000
- Subject: [Bug c++/50233] Internal compiler error: in build_value_init_noctor, at cp/init.c:336
- Auto-submitted: auto-generated
- References: <bug-50233-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50233
--- Comment #5 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2011-08-30 09:52:19 UTC ---
I just notice that the current exclusion of reinterpret_cast in constant
expressions would make it impossible to define addressof as a constexpr
function. C++11 currently invalidates the special portable language rule of
reinterpret_cast, addressof is based on, see also the recent example given in
bug 49171, comment 2.