https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95173
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:53bc489468c3bf2958151ba624679cadff403ce8 commit r9-8700-g53bc489468c3bf2958151ba624679cadff403ce8 Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Tue Jun 23 16:25:29 2020 +0200 d: Fix ICE in uda_attribute_p when looking up unknown attribute The target attribute table is not guaranteed to be set in all backends. gcc/d/ChangeLog: PR d/95173 * d-attribs.cc (uda_attribute_p): Don't search target attribute table if NULL. gcc/testsuite/ChangeLog: PR d/95173 * gdc.dg/pr95173.d: New test. (cherry picked from commit 62e02c8729a75c4a859edc18e0bcafb87d717f46)