Supplemental fix for issue 9148 and 13120

Today, some attribute violations are accidentally accepted by the issue 13120. 

This change is required by a compiler fix https://github.com/D-Programming-Language/dmd/pull/3956