]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/constexpr.c
Fix constexpr lvalue use of __real and __imag.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Nov 2016 06:52:15 +0000 (06:52 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Nov 2016 06:52:15 +0000 (06:52 +0000)
commit20b34a5640066f0a12a608817caa3845fece24d5
tree9e09986206c795626d4a8b16ecfb1b2931920910
parent7318876aaadadc8781adc3a8e3a3018444bc0c44
Fix constexpr lvalue use of __real and __imag.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242349 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-complex2.C [new file with mode: 0644]