[D] Fix IdentityExp comparison for complex floats.
authorJohannes Pfau <johannespfau@gmail.com>
Sun, 20 Jan 2019 12:15:47 +0000 (12:15 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sun, 20 Jan 2019 12:15:47 +0000 (12:15 +0000)
commit70d87497e760dca94ef78e4e936f6d461f36e80d
tree7bbddd4a30ab412c00835963159a9d625f2498d0
parenta766ecb0d488624c0289620785ffe4e2d5cc9971
[D] Fix IdentityExp comparison for complex floats.

gcc/d/ChangeLog:

2019-01-20  Johannes Pfau  <johannespfau@gmail.com>

* expr.cc (build_float_identity): New function.
(ExprVisitor::visit(IdentityExp)): Add support for complex types.

gcc/testsuite/ChangeLog:

2019-01-20  Johannes Pfau  <johannespfau@gmail.com>

* gdc.dg/runnable.d: Add tests for comparing complex types.

From-SVN: r268103
gcc/d/ChangeLog
gcc/d/expr.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/runnable.d