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

2019-10-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 --- Comment #6 from Marek Polacek --- Well, but perhaps the right fix is removing "std::is_constant_evaluated ()" instead?

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

2019-10-12 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 --- Comment #5 from Marc Glisse --- Would it make sense to add a fixit hint that removes "constexpr"? I think that might make the warning a bit clearer for some users. On the other hand, if is_constant_evaluated gets removed by P1938, there is no

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

2019-08-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

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

2019-08-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Wed Aug 28 02:03:48 2019 New Revision: 274981 URL: https://gcc.gnu.org/viewcvs?rev=274981&root=gcc&view=rev Log: PR c++/91428 - warn about std::is_constant_evaluated in if cons

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

2019-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 --- Comment #2 from Marek Polacek --- *be

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

2019-08-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91428 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRME