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

            Bug ID: 97930
           Summary: pair is not a structural type
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stinkingmadgod at gmail dot com
  Target Milestone: ---

template<std::pair<int, int>>
struct S;

This is valid in C++20, but fails due to libstdc++ using a private base
__pair_base, rendering pair non-structural.

[pairs.pairs]
pair<T, U> is a structural type if T and U are both structural types.

Reply via email to