<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102064>102064</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`__noop` not marked as constexpr
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend,
constexpr
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DanielJump
</td>
</tr>
</table>
<pre>
https://godbo.lt/z/j1hG1YYqK
`constexpr int x = []{ __noop; return 0; }();`
flags: `-fms-extensions`
```
<source>:1:15: error: constexpr variable 'x' must be initialized by a constant expression
1 | constexpr int x = []{ __noop; return 0; }();
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
<source>:1:23: note: subexpression not valid in a constant expression
1 | constexpr int x = []{ __noop; return 0; }();
| ^~~~~~
<source>:1:19: note: in call to '[] {
__noop();
return 0;
}.operator()()'
1 | constexpr int x = []{ __noop; return 0; }();
| ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Compiler returned: 1
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVM2O2y4Qf5rxZZQIQ2zHBx_ysflL_z7BnlbYTBK2GFLAUXYPffaK2LtJt9peqkpFCWAMv48ZPDIEfbBEDRRrKLaZHOLR-WYrrSbz_9Cfstapl-YY4ymAWAHfAd8dnGrd3ETgu1fgu-f8-F_--PjtC7AtsNXUl6xzNkS6nDxqG_GCILY40kC1xqcn69wJxBo9xcFbZGkO1Rb4EngNYg0lG7H2Rh4SO0LJZvs-zOgSyQbtbHjf8846_cZHsQlu8B2BeACxytO_SEDkvfNpctN4ll7L1hACry7AK-yHELEl1FZHLY1-JYXtC8rxjLQR0zkKScdIh4iYI1Qb_GPr73h4xfu5QfGA3z9rnzrnIhm2LlIaw9De5KdVPEujFWr7Lzi8c_p7U3l9b0pb7KQxGF3K4igHobojm4T9quJO50RWbefuRF5G56f9U1_97Vi8uf40u_l4gfFANgkkNR_XN64_aUN-YiKVgpJ_-DQy1QhVi1pm1OQV58taVKLOjs0iJ0lKFKoQXZFzWYt6T_WiqEoqlFjKTDec8QVbsoLnohD1vKQiL1rV8b3i-b7uYMGol9rMjTn3c-cPmQ5hoCZnnJWLzMiWTLiWGs47I-0BxGrvnY1kFXAOfJNevEUzrRTbzDcJbdYOhwALZnSI4YYfdTTUQMmmKJfsepd76b-SQhluuckGbz7WMR2PQzvvXA98lyCnYXby7pm6VN-u-gPw3WTh3PAfAQAA__91LoYv">