public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108769] New: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied
@ 2023-02-13  9:06 roi.jacobson1 at gmail dot com
  2023-02-13  9:30 ` [Bug c++/108769] [C++20] __is_trivial returns true even if a default constructor's constraints " redi at gcc dot gnu.org
  2024-06-18 19:50 ` mpolacek at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: roi.jacobson1 at gmail dot com @ 2023-02-13  9:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108769
           Summary: [C++20] __is_trivial returns true even if a default
                    constructor's constrains are unsatisfied
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roi.jacobson1 at gmail dot com
  Target Milestone: ---

GCC accepts this code:

template <class T>
struct S {
    S() requires false = default;
};
static_assert(__is_trivial(S<int>));

There are some related DRs that GCC doesn't implement (like DR1363), but I
don't think this falls under any of them.

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

* [Bug c++/108769] [C++20] __is_trivial returns true even if a default constructor's constraints are unsatisfied
  2023-02-13  9:06 [Bug c++/108769] New: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied roi.jacobson1 at gmail dot com
@ 2023-02-13  9:30 ` redi at gcc dot gnu.org
  2024-06-18 19:50 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2023-02-13  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=58074,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=106085
           Keywords|                            |accepts-invalid
   Last reconfirmed|                            |2023-02-13
     Ever confirmed|0                           |1

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

* [Bug c++/108769] [C++20] __is_trivial returns true even if a default constructor's constraints are unsatisfied
  2023-02-13  9:06 [Bug c++/108769] New: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied roi.jacobson1 at gmail dot com
  2023-02-13  9:30 ` [Bug c++/108769] [C++20] __is_trivial returns true even if a default constructor's constraints " redi at gcc dot gnu.org
@ 2024-06-18 19:50 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2024-06-18 19:50 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
                 CC|                            |mpolacek at gcc dot gnu.org

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

end of thread, other threads:[~2024-06-18 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13  9:06 [Bug c++/108769] New: [C++20] __is_trivial returns true even if a default constructor's constrains are unsatisfied roi.jacobson1 at gmail dot com
2023-02-13  9:30 ` [Bug c++/108769] [C++20] __is_trivial returns true even if a default constructor's constraints " redi at gcc dot gnu.org
2024-06-18 19:50 ` mpolacek 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).