r270985 - in /trunk/gcc/cp: ChangeLog typeck.c
jason@gcc.gnu.org
jason@gcc.gnu.org
Tue May 7 22:37:00 GMT 2019
Author: jason
Date: Tue May 7 22:37:19 2019
New Revision: 270985
URL: https://gcc.gnu.org/viewcvs?rev=270985&root=gcc&view=rev
Log:
PR c++/86485 - -Wmaybe-unused with empty class ?:
* typeck.c (build_static_cast_1): Use cp_build_addr_expr.
For GCC 9 I fixed this bug with a patch to gimplify_cond_expr, but this
function was also doing the wrong thing.
Using build_address does not push the ADDR_EXPR down into the arms of a
COND_EXPR, which we need for proper handling of conversion of an lvalue ?:
to another reference type.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
More information about the Gcc-cvs
mailing list