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)
Showing
gcc/testsuite/gdc.dg/pr95173.d
0 → 100644
Please
register
or
sign in
to comment