[Bug c++/92859] compiler treats enum type as an integer during overload resolution when a bit-field of this enum is considered
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 11 16:49:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92859
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Dec 11 16:48:44 2019
New Revision: 279229
URL: https://gcc.gnu.org/viewcvs?rev=279229&root=gcc&view=rev
Log:
PR c++/92859 - ADL and bit-field.
We also need unlowered_expr_type when considering associated types for ADL.
* name-lookup.c: Use unlowered_expr_type.
Added:
trunk/gcc/testsuite/g++.dg/overload/bit-field1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
More information about the Gcc-bugs
mailing list