This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/68810] [8 regression] FAIL: g++.dg/cpp0x/constexpr-reinterpret1.C -- test for errors -- -m32


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]