Fix constexpr lvalue use of __real and __imag.
authorJason Merrill <jason@redhat.com>
Sun, 13 Nov 2016 06:52:15 +0000 (01:52 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 13 Nov 2016 06:52:15 +0000 (01:52 -0500)
commitdc8d2d00c52e29a4d68576cecdcc161484123195
tree9e09986206c795626d4a8b16ecfb1b2931920910
parentba1e69c03f96f8f9f0e0d4218b168bf975a83cbb
Fix constexpr lvalue use of __real and __imag.

* constexpr.c (potential_constant_expression_1): REALPART_EXPR and
IMAGPART_EXPR can be lvalues.

From-SVN: r242349
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-complex2.C [new file with mode: 0644]