Avoid constexpr garbage for implicit conversion to void.
authorJason Merrill <jason@redhat.com>
Fri, 7 Jun 2019 21:08:26 +0000 (17:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 7 Jun 2019 21:08:26 +0000 (17:08 -0400)
commit7a649ef59f9c32dd164a8e62b6eddb778cd7cb12
treec0133a4dfda8d83caa31588f64debe04a1819739
parentc1b4c4f49131f16686ace6aa6b3291edd7048e82
Avoid constexpr garbage for implicit conversion to void.

* constexpr.c (cxx_eval_constant_expression): Call
STRIP_ANY_LOCATION_WRAPPER early.
[CONVERT_EXPR]: Don't build anything for conversion to void.
[ADDR_EXPR]: ggc_free unused ADDR_EXPR.

From-SVN: r272054
gcc/cp/ChangeLog
gcc/cp/constexpr.c