Skip to content

[C++20] [Modules] Regression module declaration must occur at the start of the translation unit #145274

Open
@ChuanqiXu9

Description

@ChuanqiXu9

Reproducer: https://godbolt.org/z/eP84dnKGv

# 1 __FILE__ 1 3
export module a;

I believe this should be accepted no matter what spec says.

Metadata

Metadata

Assignees

Labels

clang:modulesC++20 modules and Clang Header Modules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions