public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94302] New: Implement DR 2310: Type completeness and derived-to-base pointer conversions
@ 2020-03-24 16:10 mpolacek at gcc dot gnu.org
  2021-09-16  8:03 ` [Bug c++/94302] [DR 2310] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-24 16:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94302
           Summary: Implement DR 2310: Type completeness and
                    derived-to-base pointer conversions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

This issue was approved as a DR at Kona 2019:

  template<typename A, typename B> struct check_derived_from { 
    static A a; 
    static constexpr B *p = &a; 
  }; 
  struct W {}; 
  struct X {}; 
  struct Y {}; 
  struct Z : W, 
    X, check_derived_from<Z, X>,  // #1 
    check_derived_from<Z, Y>, Y { // #2 
    check_derived_from<Z, W> cdf; // #3 
  }; 


All three attempted conversions in the example are ill-formed.

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

* [Bug c++/94302] [DR 2310] Type completeness and derived-to-base pointer conversions
  2020-03-24 16:10 [Bug c++/94302] New: Implement DR 2310: Type completeness and derived-to-base pointer conversions mpolacek at gcc dot gnu.org
@ 2021-09-16  8:03 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16  8:03 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-09-16
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

end of thread, other threads:[~2021-09-16  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 16:10 [Bug c++/94302] New: Implement DR 2310: Type completeness and derived-to-base pointer conversions mpolacek at gcc dot gnu.org
2021-09-16  8:03 ` [Bug c++/94302] [DR 2310] " pinskia 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).