[Bug c++/88628] lambda expression in static_assert in if constexpr is not evaluated

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 28 11:11:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88628

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
clang++ agrees with g++ here.  The lambda expression needs to be instantiated
so that it can be evaluated and expressions in discarded statements are not
instantiated.


More information about the Gcc-bugs mailing list