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

--- Comment #2 from Simon H. <sh1.gccbug at tikouka dot nz> ---
I'm not sure what the canonical non-builtin entrypoint would be in this case. 
Some kind of idiom detection?

I tried the is_constant_evaluated() test but it only picks up things which are
explicitly constexpr rather than optimising away all such calls (see the
difference between tests f3() and g3()).

Reply via email to