diff options
author | Jason Merrill <jason@redhat.com> | 2019-05-07 18:37:19 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-05-07 18:37:19 -0400 |
commit | 7f16ac89313843929da15e0d7dceefb85992da2e (patch) | |
tree | 82869efd8838e8b1221be15780bb40bded03e106 /gcc/tree-inline.c | |
parent | 258195f165f69c31c953716ece6e0922b651cd5b (diff) | |
download | gcc-7f16ac89313843929da15e0d7dceefb85992da2e.zip gcc-7f16ac89313843929da15e0d7dceefb85992da2e.tar.gz gcc-7f16ac89313843929da15e0d7dceefb85992da2e.tar.bz2 |
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.
From-SVN: r270985
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions