https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105004
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:e6afd08da387e3161651c8770d5b7d32741f4341 commit r11-9674-ge6afd08da387e3161651c8770d5b7d32741f4341 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. (cherry picked from commit 1dd51373a82408361068e130a84caa888ef0d2b3)