This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71794] Std::array as an incomplete type in nested name specifier.


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If you fix your partial specialization it works with all compilers:

template <typename T, std::size_t N>  /* correct type */
struct B<std::array<T, N>>
{
  static std::array<T, N> bar()
  {
      return std::array<T, N>();
  }
};

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]