https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90047
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, clang++ rejects this: /home/jakub/src/gcc/obj06i/usr/local/include/c++/9.0.1/type_traits:2427:44: error: no type named 'type' in 'std::enable_if<false, void>'; 'enable_if' cannot be used to disable this declaration using enable_if_t = typename enable_if<_Cond, _Tp>::type; ^~~~~ pr90047.C:9:29: note: in instantiation of template type alias 'enable_if_t' requested here template <class U, std::enable_if_t<!std::is_array<T>::value>* = nullptr> ^ pr90047.C:26:26: note: in instantiation of template class 'STR<char [10], &ctag1>' requested here STR<char[10], ctag1> c1; ^