r261971 - in /trunk/gcc/cp: ChangeLog constexpr...
jason@gcc.gnu.org
jason@gcc.gnu.org
Fri Jun 22 21:57:00 GMT 2018
Author: jason
Date: Fri Jun 22 21:57:01 2018
New Revision: 261971
URL: https://gcc.gnu.org/viewcvs?rev=261971&root=gcc&view=rev
Log:
Avoid taking the address of something just because it's in parens.
* constexpr.c (same_type_ignoring_tlq_and_bounds_p): New.
(cxx_fold_indirect_ref): Use it.
(cxx_eval_constant_expression) [VIEW_CONVERT_EXPR]: Use it.
* cp-tree.h (REF_PARENTHESIZED_P): Allow VIEW_CONVERT_EXPR.
* semantics.c (force_paren_expr): Use VIEW_CONVERT_EXPR instead of
static_cast to reference type.
(maybe_undo_parenthesized_ref): Handle VIEW_CONVERT_EXPR.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/semantics.c
More information about the Gcc-cvs
mailing list