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

[BUG] cppfront fails on valid cpp1 syntax for importing module partitions #1190

Open
farmerpiki opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@farmerpiki
Copy link
Contributor

module;

export module utils:part2;
import :part1;

results in part2.cpp2(4,1): error: a namespace-scope object must have an initializer

there currently is a workaround, explicitly writing, but that might result in duplicate exports if it's needed in multiple places
export import :part1;

@farmerpiki farmerpiki added the bug Something isn't working label Jul 30, 2024
@farmerpiki farmerpiki changed the title [BUG] parser fails on valid cpp1 syntax for importing module partitions [BUG] cppfront fails on valid cpp1 syntax for importing module partitions Jul 30, 2024
@JohelEGP
Copy link
Contributor

JohelEGP commented Oct 4, 2024

This is resolved by #569.
The PR is closed, but I still keep the branch up-to-date (https://github.com/JohelEGP/cppfront/tree/cpp_modules).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants