[Bug c++/98261] Wrong optimize for virtual function

2020-12-13 Thread 570070308 at qq dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98261 --- Comment #3 from 。 <570070308 at qq dot com> --- (In reply to Jonathan Wakely from comment #2) > The bug reporting guidelines tell you to try -fsanitize=undefined before > reporting a bug. That would have told you your code is wrong: > > A > d

[Bug c++/98261] Wrong optimize for virtual function

2020-12-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98261 --- Comment #2 from Jonathan Wakely --- The bug reporting guidelines tell you to try -fsanitize=undefined before reporting a bug. That would have told you your code is wrong: A d.C:26:14: runtime error: member call on address 0x7ffe71274e18 whic

[Bug c++/98261] Wrong optimize for virtual function

2020-12-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98261 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---