Skip to content

Parse: handle another case of invalid handling for attributes #5869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

compnerd
Copy link
Member

clang would improperly disallow GNU attributes before C++ standard attributes when a declaration had a linkage specifier. Handle this similarly to the previous case of invalid parsing. We now better match the parsing rules from GCC.

clang would improperly disallow GNU attributes before C++ standard
attributes when a declaration had a linkage specifier.  Handle this
similarly to the previous case of invalid parsing.  We now better match
the parsing rules from GCC.
@compnerd
Copy link
Member Author

CC: @bnbarham

@bnbarham
Copy link

Thanks @compnerd! If we end up making any changes to this one upstream we should cherry-pick those as well.

@bnbarham
Copy link

@swift-ci please test

3 similar comments
@compnerd
Copy link
Member Author

compnerd commented Jan 5, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Jan 9, 2023

@swift-ci please test

@bnbarham
Copy link

bnbarham commented Jan 9, 2023

@swift-ci please test

@bnbarham
Copy link

bnbarham commented Jan 9, 2023

Failures were ReflectionContext related, which should be fixed now. Re-running.

@bnbarham
Copy link

bnbarham commented Jan 9, 2023

Same stdlib/FixedPointConversion tests failing elsewhere. I'm happy to merge this one @compnerd

@compnerd
Copy link
Member Author

compnerd commented Jan 9, 2023

Sounds good!

@compnerd compnerd merged commit bb816a6 into swiftlang:stable/20221013 Jan 9, 2023
@compnerd compnerd deleted the linkage-order-early branch January 9, 2023 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants