public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107085] New: __reference_constructs_from_temporary does not detect static up-cast
@ 2022-09-29 10:30 roi.jacobson1 at gmail dot com
  2022-09-29 10:42 ` [Bug c++/107085] " redi at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: roi.jacobson1 at gmail dot com @ 2022-09-29 10:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107085
           Summary: __reference_constructs_from_temporary does not detect
                    static up-cast
           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: ---

This example:

struct Base {};
struct Derived : Base {};
static_assert(__reference_constructs_from_temporary(Base&, Derived));

fails to compile, but according to p2255r1 it seems correct to me.

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

end of thread, other threads:[~2022-10-07 22:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 10:30 [Bug c++/107085] New: __reference_constructs_from_temporary does not detect static up-cast roi.jacobson1 at gmail dot com
2022-09-29 10:42 ` [Bug c++/107085] " redi at gcc dot gnu.org
2022-09-29 10:46 ` redi at gcc dot gnu.org
2022-09-29 11:11 ` roi.jacobson1 at gmail dot com
2022-09-29 11:52 ` redi at gcc dot gnu.org
2022-09-29 12:45 ` mpolacek at gcc dot gnu.org
2022-10-04 19:34 ` mpolacek at gcc dot gnu.org
2022-10-04 20:41 ` mpolacek at gcc dot gnu.org
2022-10-05  6:43 ` redi at gcc dot gnu.org
2022-10-05 15:29 ` mpolacek at gcc dot gnu.org
2022-10-05 16:07 ` mpolacek at gcc dot gnu.org
2022-10-07 22:06 ` cvs-commit at gcc dot gnu.org
2022-10-07 22:06 ` 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).