[Bug c++/85438] [8 Regression] invalid "a reinterpret_cast is not a constant expression" diagnostics since r249088

2018-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85438

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Jakub Jelinek  ---
There is one NOP_EXPR created by

*** This bug has been marked as a duplicate of bug 85437 ***

[Bug c++/85438] [8 Regression] invalid "a reinterpret_cast is not a constant expression" diagnostics since r249088

2018-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85438

Jakub Jelinek  changed:

   What|Removed |Added

   Keywords|accepts-invalid |rejects-valid
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-04-17
   Target Milestone|--- |8.0
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
clang++ and older g++ accept it.