[Bug c++/91428] Please warn on if constexpr (std::is_constant_evaluated())

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 12 19:56:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2019-08-12
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Barry Revzin from comment #0)
> Can you please provide a warning for this erroneous usage?

Yes, I think this ought to me feasible to add to finish_if_stmt_cond.


More information about the Gcc-bugs mailing list