Don't fold -(constant) or -0.
authorJason Merrill <jason@redhat.com>
Tue, 17 Nov 2015 21:44:08 +0000 (16:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 17 Nov 2015 21:44:08 +0000 (16:44 -0500)
commit8c2bebddd224cddee49a9e436aac395a1f7716f5
tree4cfc6535864089407a9ca62300a2da16e43fa7d4
parent33c6daf4781dd373ac4760ac020d670e075d3af4
Don't fold -(constant) or -0.

* parser.c (cp_parser_unary_expression): Fold -constant here.
* typeck.c (cp_build_unary_op): Not here.

From-SVN: r230506
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/typeck.c