public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109997] New: __is_assignable(int, IncompleteType) should be rejected
@ 2023-05-26 18:01 redi at gcc dot gnu.org
  2023-05-26 18:22 ` [Bug c++/109997] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-05-26 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109997
           Summary: __is_assignable(int, IncompleteType) should be
                    rejected
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
            Blocks: 71579
  Target Milestone: ---

struct S;
bool b = __is_assignable(int, S);

This should be rejected:

The precondition for std::is_assignable is:

"T and U shall be complete types, cv void, or arrays of unknown bound."


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71579
[Bug 71579] type_traits miss checks for type completeness in some traits

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

end of thread, other threads:[~2023-05-26 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26 18:01 [Bug c++/109997] New: __is_assignable(int, IncompleteType) should be rejected redi at gcc dot gnu.org
2023-05-26 18:22 ` [Bug c++/109997] " mpolacek at gcc dot gnu.org
2023-05-26 21:34 ` pinskia at gcc dot gnu.org
2023-05-26 21:35 ` pinskia at gcc dot gnu.org
2023-05-26 21:37 ` redi 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).