Re: [PATCH] c++: Handle enum attributes like class attributes [PR110345]

2024-12-17 Thread Jason Merrill
On 8/30/24 1:29 PM, Jakub Jelinek wrote: Hi! As the following testcase shows, cp_parser_decl_specifier_seq was calling warn_misplaced_attr_for_class_type only for class types and not for enum types, while check_tag_decl calls them for both class and enum types. Enum types are really the same cas

[PATCH] c++: Handle enum attributes like class attributes [PR110345]

2024-08-30 Thread Jakub Jelinek
Hi! As the following testcase shows, cp_parser_decl_specifier_seq was calling warn_misplaced_attr_for_class_type only for class types and not for enum types, while check_tag_decl calls them for both class and enum types. Enum types are really the same case here, the attribute needs to go before th