re PR c++/55137 (Unexpected static structure initialization)
authorJason Merrill <jason@redhat.com>
Thu, 22 Nov 2012 14:42:00 +0000 (09:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 22 Nov 2012 14:42:00 +0000 (09:42 -0500)
commit81ede53ad7a6db16eee9e9d8896949e928c04d5c
tree9c24e24f889471d133a7807f725c04c202a351bc
parent0c0cba54e8c87f02ee4ff2bea9b746f09ef1c8ba
re PR c++/55137 (Unexpected static structure initialization)

PR c++/55137
* semantics.c (verify_constant): Track overflow separately.
(reduced_constant_expression_p): Don't check it here.
(cxx_eval_constant_expression): Check it on CSTs.
(cxx_eval_outermost_constant_expr): Treat overflows as non-constant
at this point, but still return the folded version.
(potential_constant_expression_1): Don't check overflow.

From-SVN: r193727
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/init/static-init3.C [new file with mode: 0644]