https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109023
--- Comment #1 from GCC 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:9a7b6668f8f79be8fa73982b8b0bde33c1d8c61f commit r15-9403-g9a7b6668f8f79be8fa73982b8b0bde33c1d8c61f Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Sat Apr 12 11:13:50 2025 +0200 d: Add option to include imported modules in the compilation [PR109023] Adds the ability to include imported modules in the compilation, as if they were given on the command line. When this option is enabled, all imported modules are compiled except those that are part of libphobos. PR d/109023 gcc/d/ChangeLog: * d-compiler.cc: Include dmd/errors.h. (Compiler::onImport): Implement. * d-lang.cc (d_handle_option): Handle -finclude-imports. (d_parse_file): Run semantic on included imports. * gdc.texi: Document -finclude-imports. * lang.opt: Add finclude-imports. * lang.opt.urls: Regenerate. gcc/testsuite/ChangeLog: * gdc.dg/torture/imports/pr109023.d: New test. * gdc.dg/torture/pr109023.d: New test.