Open elbeno opened 2 hours ago
Yup, the operator()
of the lambda is not constexpr:
CXXMethodDecl 0x7e0f6b6bf760 <./array.cpp:124:12, col:28> col:11 referenced operator() 'auto () const -> int' implicit_instantiation inline instantiated_from 0x7e0f6b6bc900
`-CompoundStmt 0x7e0f6b6bfa30 <col:14, col:28>
`-ReturnStmt 0x7e0f6b6bfa18 <col:16, col:23>
`-IntegerLiteral 0x7e0f6b6bcab8 <col:23> 'int' 123
@llvm/issue-subscribers-clang-frontend
Author: Ben Deane (elbeno)
An IILE as a template argument inside some other templates; this is the smallest SSCCE I could find.
produces:
https://godbolt.org/z/x6heGf38x