This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71794] Std::array as an incomplete type in nested name specifier.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Jul 2016 11:43:44 +0000
- Subject: [Bug c++/71794] Std::array as an incomplete type in nested name specifier.
- Auto-submitted: auto-generated
- References: <bug-71794-4@http.gcc.gnu.org/bugzilla/>
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>();
}
};