Skip to content

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

Open
@farmerpiki

Description

@farmerpiki

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions