This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68810] [8 regression] FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for errors -- -m32
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Dec 2017 15:29:20 +0000
- Subject: [Bug c++/68810] [8 regression] FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for errors -- -m32
- Auto-submitted: auto-generated
- References: <bug-68810-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68810
--- Comment #18 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
...but presumably a question here is "what is the ideal output of the compiler
for that code?", and the answer might be:
constexpr-reinterpret1.C:19:??: error: reinterpret_cast from integer to pointer
{ return *((Inner *)4); }
^~~~~~~~~~
and it ought to be possible to implement that with the more ambitious v3 patch
kit.