Skip to content

Modules are broken on contracts-main branch #10

@dascandy

Description

@dascandy
module.cppm:1:1: error: 'module;' introducing a global module fragment can appear only at the start of the translation unit
    1 | module;
      | ^~~~~~~
module.cppm:3:8: error: module declaration must occur at the start of the translation unit
    3 | export module mod;
      |        ^
module.cppm:1:1: note: add 'module;' to the start of the file to introduce a global module fragment
    1 | module;
      | ^

It smells like there is something being prepended to translation units, which breaks this handling. Reproducer is in #8 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions