Since MaybeParseGNUAttributes() only takes a ParsedAttributes and not a ParsedAttributesWithRange, the source range of attrs will always be invalid after calling MaybeParseGNUAttributes(). That means the call to ProhibitAttributes() removed in this patch will always simply do nothing.
The comment that's removed alongside the ProhibitAttributes() call seems to be incorrect as well since numerous tests use (and expect) GNU-style attributes in enum bodies.