Skip to content
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

Revisit BasicSpecifiers::External for user-authored extern #78

Open
cdacamar opened this issue Dec 5, 2024 · 1 comment
Open

Revisit BasicSpecifiers::External for user-authored extern #78

cdacamar opened this issue Dec 5, 2024 · 1 comment

Comments

@cdacamar
Copy link
Collaborator

cdacamar commented Dec 5, 2024

Revisit this one the IFC has a better representation for the syntactic extern on function declarations vs compiler-generated/implicit external-linkage.

e.g.

extern void f();
void g();

On MSVC, both of the functions above have external-linkage, but BasicSpecifiers::External is insufficient for telling us whether the user wrote extern or external-linkage was generated by the compiler.

@GabrielDosReis
Copy link
Collaborator

On MSVC, both of the functions above have external-linkage, but BasicSpecifiers::External is insufficient for telling us whether the user wrote extern or external-linkage was generated by the compiler.

This is a recent change in the MSVC behavior - not intended by the original IFC spec. The IFC aims, at its core, to persist semantic resolution.

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

No branches or pull requests

2 participants