Don't fold conversion from a constant variable.
authorJason Merrill <jason@redhat.com>
Fri, 9 Jun 2017 22:46:51 +0000 (18:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 9 Jun 2017 22:46:51 +0000 (18:46 -0400)
commitbf31620cebc7955ff2f4f975292dcbe9c6f026a5
treeecb9d5e98930e4812bbaf1fff2e77e347fde4ed3
parentb09649fdc609c79ea5acb9668636c7d8a5f64a7c
Don't fold conversion from a constant variable.

* call.c (convert_like_real): Remove "inner" parameter.
Don't replace a constant with its value.
* cp-gimplify.c (cp_fully_fold): Use cp_fold_rvalue.

From-SVN: r249083
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-gimplify.c