r275745 - in /trunk/gcc: cp/ChangeLog cp/call.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Mon Sep 16 04:34:00 GMT 2019
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
More information about the Gcc-cvs
mailing list