Closed rianquinn closed 4 years ago
If I remove the constexpr, this works fine.
Looks like a bug with gcc: https://godbolt.org/z/krYNm9
If you look at the error messages, gcc thinks that the return type of the lambda is void
, while clang correctly detects it to be str
. This only happens if the if constexpr
condition evaluates to false
.
If you attempt to compile FMT_STRING with an if constexpr, you get the following with GCC 9