[PATCH] c++: Extend std::is_constant_evaluated in if warning [PR100995]

2021-06-09 Thread Marek Polacek via Gcc-patches
Jakub pointed me at which shows that our existing warning could be extended to handle more cases. This patch implements that. A minor annoyance was handling macros, in libstdc++ we have reference operator[

Re: [PATCH] c++: Extend std::is_constant_evaluated in if warning [PR100995]

2021-06-10 Thread Jason Merrill via Gcc-patches
On 6/9/21 9:46 PM, Marek Polacek wrote: Jakub pointed me at which shows that our existing warning could be extended to handle more cases. This patch implements that. A minor annoyance was handling macros, i