[Bug c++/111357] __integer_pack fails to work with values of dependent type convertible to integers in noexcept context

2023-09-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-09-10 Ever confirmed|0

[Bug c++/111357] __integer_pack fails to work with values of dependent type convertible to integers

2023-09-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111357 --- Comment #1 from Andrew Pinski --- The front-end does: hi = instantiate_non_dependent_expr (hi, complain); hi = cxx_constant_value (hi, complain); int len = valid_constant_size_p (hi) ? tree_to_shwi (hi) : -1;