[Bug d/108050] d: internal compiler error: in visit, at d/imports.cc:72
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 11 17:56:07 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108050
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:f12c82222f93111e2fb0bd73d1bad52325001990
commit r12-8969-gf12c82222f93111e2fb0bd73d1bad52325001990
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Sat Dec 10 19:12:43 2022 +0100
d: Fix internal compiler error: in visit, at d/imports.cc:72 (PR108050)
The visitor for lowering IMPORTED_DECLs did not have an override for
dealing with importing OverloadSet symbols. This has now been
implemented in the code generator.
PR d/108050
gcc/d/ChangeLog:
* decl.cc (DeclVisitor::visit (Import *)): Handle build_import_decl
returning a TREE_LIST.
* imports.cc (ImportVisitor::visit (OverloadSet *)): New override.
gcc/testsuite/ChangeLog:
* gdc.dg/imports/pr108050/mod1.d: New.
* gdc.dg/imports/pr108050/mod2.d: New.
* gdc.dg/imports/pr108050/package.d: New.
* gdc.dg/pr108050.d: New test.
(cherry picked from commit d9d8c9674ad3ad3aa38419d24b1aaaffe31f5d3f)
More information about the Gcc-bugs
mailing list