<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/145274>145274</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[C++20] [Modules] Regression module declaration must occur at the start of the translation unit
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:modules
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ChuanqiXu9
</td>
</tr>
</table>
<pre>
Reproducer: https://godbolt.org/z/eP84dnKGv
```
# 1 __FILE__ 1 3
export module a;
```
I believe this should be accepted no matter what spec says.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckUGL2z4QxT_N-DJskGXLGx98cHb__rO0hbKn3sJYmsQqipVKo7TbT1-STSksDAgJvce836Oc_XFlHsDswDxXVGSJaXhaCq0__LfSV3N0b8Mrn1N0xXKCZsRF5JyhGUFPoKdjdHMMsonpCHr6DXrir9vWrZ_-v4Aar9Op-6gRdIM17vfTy-f_9nussQE18q9zTIKn6EpgJGh2H1VqfMGZg-cLoyw-Y15iCQ5nRrKWz8IO14gnEuGEPxcSzGe2mOktbyo3NK5veqp4qB-N6kyv-rpaBkcHS-x0b_vaKDZGdQen2q537batDVV-0Eob1elGdXXd1Bveqm5Lhh4NdU7VLbSKT-TDJoTL6Uqg8jkXHurW6Me2CjRzyDe2WttA6xGa8T1mBq2vwNNwlT7M5ZihVcFnyf_MxEu4VfMEegd6pxWYZwSz-3L3MM_4ysfEOfu4_gXo2AZKJLenkgWjtSUhCcrCmIWSYDzcLpJozeH9a1m9VCWF4UO9XpYyb2w8gZ6um92Ph3OK39kK6OmWOYOe7rEvg_4TAAD__6WMvLc">