https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105004

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:1dd51373a82408361068e130a84caa888ef0d2b3

commit r12-7738-g1dd51373a82408361068e130a84caa888ef0d2b3
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Mon Mar 21 19:47:50 2022 +0100

    d: Fix internal compiler error: in build_complex, at tree.c:2358

    The conversion from the special _Complex enum to native complex used
    build_complex, however the input value isn't necessarily a literal.

            PR d/105004

    gcc/d/ChangeLog:

            * d-codegen.cc (build_struct_literal): Use complex_expr to build
            complex expressions from __c_complex types.

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr105004.d: New test.

Reply via email to