mirror of git://gcc.gnu.org/git/gcc.git
* pt.c (build_non_dependent_expr): Use fold_non_dependent_expr_sfinae.
From-SVN: r174883
This commit is contained in:
parent
b1623cc545
commit
b82972cae2
|
@ -1,5 +1,7 @@
|
||||||
2011-06-09 Jason Merrill <jason@redhat.com>
|
2011-06-09 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* pt.c (build_non_dependent_expr): Use fold_non_dependent_expr_sfinae.
|
||||||
|
|
||||||
* parser.c (cp_parser_constant_expression): Just return the
|
* parser.c (cp_parser_constant_expression): Just return the
|
||||||
non-constant expression.
|
non-constant expression.
|
||||||
|
|
||||||
|
|
|
@ -19124,7 +19124,7 @@ build_non_dependent_expr (tree expr)
|
||||||
/* Try to get a constant value for all non-type-dependent expressions in
|
/* Try to get a constant value for all non-type-dependent expressions in
|
||||||
order to expose bugs in *_dependent_expression_p and constexpr. */
|
order to expose bugs in *_dependent_expression_p and constexpr. */
|
||||||
if (cxx_dialect >= cxx0x)
|
if (cxx_dialect >= cxx0x)
|
||||||
maybe_constant_value (fold_non_dependent_expr (expr));
|
maybe_constant_value (fold_non_dependent_expr_sfinae (expr, tf_none));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Preserve OVERLOADs; the functions must be available to resolve
|
/* Preserve OVERLOADs; the functions must be available to resolve
|
||||||
|
|
Loading…
Reference in New Issue