История изменений
Исправление utf8nowhere, (текущая версия) :
Nicolas Lesser
int main() { static_assert(2); // ill-formed, gcc accepts if constexpr (2); // ill-formed, gcc accepts }
Jonathan Wakely
CWG has been discussing this and the consensus seems to be that both examples are OK. We certainly shouldn't make any change to GCC until CWG makes a final decision.
Кек.
Исходная версия utf8nowhere, :
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87724
Nicolas Lesser
int main() { static_assert(2); // ill-formed, gcc accepts if constexpr (2); // ill-formed, gcc accepts }
Jonathan Wakely
CWG has been discussing this and the consensus seems to be that both examples are OK. We certainly shouldn't make any change to GCC until CWG makes a final decision.