public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/97930] New: pair is not a structural type
@ 2020-11-20 18:03 stinkingmadgod at gmail dot com
  2020-11-20 20:06 ` [Bug libstdc++/97930] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: stinkingmadgod at gmail dot com @ 2020-11-20 18:03 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-29 10:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 18:03 [Bug libstdc++/97930] New: pair is not a structural type stinkingmadgod at gmail dot com
2020-11-20 20:06 ` [Bug libstdc++/97930] " redi at gcc dot gnu.org
2020-11-20 20:07 ` redi at gcc dot gnu.org
2021-04-07 10:29 ` redi at gcc dot gnu.org
2021-04-28 17:17 ` cvs-commit at gcc dot gnu.org
2021-04-28 17:20 ` redi at gcc dot gnu.org
2021-07-28  7:04 ` rguenth at gcc dot gnu.org
2022-09-29 18:06 ` redi at gcc dot gnu.org
2023-05-29 10:03 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).