public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/81078] dynamic_cast to virtual base produces the wrong answer
       [not found] <bug-81078-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-18  4:19 ` pinskia at gcc dot gnu.org
  2021-08-18 14:28 ` arthur.j.odwyer at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-18  4:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-18
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Arthur O'Dwyer from comment #0)

you need to use libc++ to get the answer.
This means the RTTI is correct and it is libstdc++ issue?

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

* [Bug libstdc++/81078] dynamic_cast to virtual base produces the wrong answer
       [not found] <bug-81078-4@http.gcc.gnu.org/bugzilla/>
  2021-08-18  4:19 ` [Bug libstdc++/81078] dynamic_cast to virtual base produces the wrong answer pinskia at gcc dot gnu.org
@ 2021-08-18 14:28 ` arthur.j.odwyer at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2021-08-18 14:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> ---
Yes, this is a libstdc++ issue.

I'm not 100% sure that "the RTTI [generated by GCC] is correct," because I
don't know how to use GCC with libc++; but yeah, there's definitely at least
some problem with libstdc++ here. Observe that Clang-with-libstdc++ fails,
Clang-with-libc++ succeeds: https://godbolt.org/z/PMq6rW9cE

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

end of thread, other threads:[~2021-08-18 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-81078-4@http.gcc.gnu.org/bugzilla/>
2021-08-18  4:19 ` [Bug libstdc++/81078] dynamic_cast to virtual base produces the wrong answer pinskia at gcc dot gnu.org
2021-08-18 14:28 ` arthur.j.odwyer at gmail dot com

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).