<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57778>57778</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Assertion `CodegenModule && "codegen for a module, but don't know which?"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
c++20,
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hokein
</td>
</tr>
</table>
<pre>
```
$ cat /tmp/t3.cpp
int a;
$ ./bin/clang -std=c++20 -Xclang -fmodule-name=test /tmp/t3.cpp
clang-16: /llvm-project/clang/lib/Parse/ParseAST.cpp:194: void clang::ParseAST(clang::Sema &, bool, bool): Assertion `CodegenModule && "codegen for a module, but don't know which?"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Uk2P2yAQ_TX4MoplQ_x18MFJNqdWWik99IphEtNgsADvqv--2E66VateeqiEwJqZN_Pe8_RWfm9JmT1OdiJZR-geBA9A6DmM03KzVEzTllQmACfs8Cj9CUhjXa9MvIXm5gY7HyRhJ0HoIR6awe7rI3EdrZw17gwfMVYE9H8Ztdbv8pKwbinQ-m3cTc5-QxGeY5aw6uP9yp3H59tdvqxdWJc3-wX9ZpWEDcC6eJ5VhNa_RC848jioJPQIvbX6422WJp336IKyBqJTRyvxhubzKmUDlfGhYovD1TrgsCld-8wBpI32VAHuxr7D-6DEQNg5YmIQrlxplOkm_PXTS3d5AT_3o4puR_ANHE7WBQgWhhAmvzCmEXy-qTDMfSrs-LDoT6eU9zP6-AHcSFBG6FkihAFBOO4H6Lm4B8fFSnSKg5wVGMVK8HZ2W3hBcu-tUDzEhJsNeOHUFB6Uf1uhBNu8LBmjRZkViWyZbFjDk6CCxvZ_GJnMTrf_7lRRVVWdDC1jVY0lL_qGS86rWhZV3TTlHvO6rBFFonmP2rekOCycn8u-cjmuMh7rdXXWBDRyyRSnRLU0ozRr8jLPiuhSKjMmS5mLfk_5nvU52WdxG5VOF4apdbfEtSvZuAs-JrXywX8k469RN4O4Eon9-RwG69rB3lGZZJXVrpp-AF2cNkA">