[Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization

2023-05-17 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770 --- Comment #9 from Jonathan Wakely --- (In reply to Richard Biener from comment #0) > Base *p = new B; I think if there isn't really a B at this address, then the derived-to-base conversion would be undefined. So on that basis, the compiler

[Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization

2023-05-09 Thread m.cencora at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770 --- Comment #8 from m.cencora at gmail dot com --- (In reply to Richard Biener from comment #7) > > Ah, interesting. I was looking for an answer whether > > new T > > may produce anything other than an object with dynamic type T or if there

[Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization

2023-05-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770 --- Comment #7 from Richard Biener --- (In reply to m.cencora from comment #6) > (In reply to Richard Biener from comment #0) > > #include > > > > struct Base > > { > > virtual ~Base() {} > > }; > > struct A : Base > > { > > virtual ~A() {

[Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization

2023-05-09 Thread m.cencora at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770 m.cencora at gmail dot com changed: What|Removed |Added CC||m.cencora at gmail dot com

[Bug ipa/109770] [10/11/12/13/14 Regression] wrong(?) devirtualization

2023-05-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109770 Richard Biener changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #