https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82165

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 16 04:34:23 2019
New Revision: 275745

URL: https://gcc.gnu.org/viewcvs?rev=275745&root=gcc&view=rev
Log:
        PR c++/82165 - enum bitfields and operator overloading.

In this testcase, !f.b0 was failing to call the overloaded operator because
TREE_TYPE is the magic bitfield integer type, and we weren't using
unlowered_expr_type the way we do in other places.  It would be nice if we
could give bit-field COMPONENT_REFs their declared type until genericization
time...

        * call.c (build_new_op_1): Use unlowered_expr_type.

Added:
    trunk/gcc/testsuite/g++.dg/expr/bitfield13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c

Reply via email to