https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108537
Bug ID: 108537
Summary: constexpr UB pointer dereference compiles if the
dereferenced value is not used
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Severi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103429
--- Comment #2 from Edward Rosten ---
It is doing if-to-switch, but only really with N=5, and only if force-inline is
set. I think this are two problems, one is that you need to force-inline in
order to trigger if-to-switch.
The other problem i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103429
Bug ID: 103429
Summary: Optimization of Auto-generated condition chain is not
giving good lookup tables.
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keyword