tree.c (build_target_expr): Set TREE_CONSTANT on literal TARGET_EXPR if the value...
authorJason Merrill <jason@redhat.com>
Tue, 23 Aug 2011 16:03:35 +0000 (12:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Aug 2011 16:03:35 +0000 (12:03 -0400)
commit30fdd4f2bf86abb827cd82c25723cd08acb9fb26
tree124ed77e9879ebf7a7a6df23a9d61c95464a70a5
parent27bec7bf4afb31eac4a79857ffe7aab3d9182e87
tree.c (build_target_expr): Set TREE_CONSTANT on literal TARGET_EXPR if the value is constant.

* tree.c (build_target_expr): Set TREE_CONSTANT on
literal TARGET_EXPR if the value is constant.
* typeck2.c (build_functional_cast): Don't set it here.

From-SVN: r177997
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/cp/typeck2.c