[Bug c++/92032] DR 1601 - Promotion of enumeration with fixed underlying type
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 8 17:26:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92032
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We give f(int) cr_promotion:
1487 /* Give this a better rank if it's a promotion. */
1488 if (same_type_p (to, type_promotes_to (from))
1489 && next_conversion (conv)->rank <= cr_promotion)
1490 conv->rank = cr_promotion;
while f(char) has cr_std, which is worse than cr_promotion, so we pick f(int).
More information about the Gcc-bugs
mailing list