hsutter / cppfront

A personal experimental C++ Syntax 2 -> Syntax 1 compiler
Other
5.46k stars 238 forks source link

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

Open farmerpiki opened 2 months ago

farmerpiki commented 2 months ago

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;

JohelEGP commented 2 days ago

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).