<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57432>57432</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
--std=c++20 -fno-modules still sets __has_feature(modules) to 1
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pkasting
</td>
</tr>
</table>
<pre>
The following code should compile without error with `--std=c++20 -fno-modules`:
```
#if __has_feature(modules)
#error Module support found!
#endif
```
Actual result: error message.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UsGO2yAQ_Rq4IFsYiGMfOKSK9tZb7xGYsc2WGIuBRv37EqfbvVQrjcQ8Zpj35gkb3W_9YwU2xxDiw28Lm6IDhmsswdX8vvsA7OFzvcgMUorpQIz0vGkwOyKvExHfagjOmnmLzT26EgBrA5EXwq-EX575K15QSD-z2201eJvB5JKAiOHjnRj_db34vh8FhmXfY8pVatkcEd1n1-b8_F-iy5SLCSwBlpCrmr8L3AHRLNBS0F3fdwNXSijqtHSjHA3NPgfQX2_HMPsQGELGLxZhObKOlhT0mvOOTz_EW42lOlhsW-2tIIRfH0ezp_gOU67QI5bnjLfTWUlBV2162_WzG8AOTs12mHoF3CmplFVTZ0cajIWAmpyqXLHBgx0jak5OV-q14ELwQYz15EK2M-8Ga6Q0MJ2dPVuiONyND-1TRxvTQpM-JNmyYC0Gjxk_iwbRLxvAQVfnm1J_SNL7T1ON2RZ6cOtD-x_KUcBm">