<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/146469>146469</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
C++: accepts invalid export module
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pinskia
</td>
</tr>
</table>
<pre>
Take:
```
module
;
export module unexpanded
;
```
as far I can read [P3034R1](https://wg21.link/P3034R1) this should be invalid as `export module` is handled during preprocessing and https://eel.is/c++draft/cpp#pre-1 gives `module\n;` as being an invalid directive too.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxUUsFu3CAQ_ZrxZRQLg-3EBw7eRCv1VlX9AeyZ2HRZjABv0r-v2N2mXQmBZph5780Dk5JdPLOG7gDdW2X2vG5RB-vTyZpq2ui3_mlODGoEMUIv7kuM5412xyWpDiBG_gxbzHjL4u75MxhPTAhixFvJ_90gRpPw3UT8hrPxGNkQQnf4roRqfzTQvYF8WXMOqTDLI8jjxyKb2ll_Ann8WyYHzKtNmNZtd4QTo_UX4yyhSQi9eFAFvUCbcDWeHBPSHq1fMEQOcZs5pRIZT_hIy-xqm0AeZ5AHkAeK5j2XMASQKkR-anCxF77y3Ym6V19G7kWRMfEN-Esa2chzthfGvG11RVrRoAZTsW6eu0a1fSuHatVmGFRLxDO_TzNR2w1kuB8MsWpUN02V1VLITjyLRpR9qGfRs5DPNLxMJIzsoBV8NtbVzl3O9RaXyqa0s27avu2HypmJXbq-vJSeP_B6C1KWjxB1aXqa9iVBK5xNOf2DyTY71q83Q0CNaOaZQ05fIz74Xu3R6UdTF5vXfarn7QzyWGDvx1OI2y-ei79XMcX3u9qLln8CAAD__wgl1hU">