[Bug c++/105255] Narrowing conversion from enumerator to integer not detected

2022-04-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105255 Marek Polacek changed: What|Removed |Added Last reconfirmed||2022-04-13

[Bug c++/105255] Narrowing conversion from enumerator to integer not detected

2022-04-13 Thread cerrigno at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105255 --- Comment #1 from Giovanni Cerretani --- I attach also a more comprehensive test that also checks conversions from integer to enumeration types (https://godbolt.org/z/jbe76E3c1). The behavior of direct-list-initialization has changed on