[Bug c++/87697] Casting a base class to derived gives no warning

2022-12-23 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87697 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com ---

[Bug c++/87697] Casting a base class to derived gives no warning

2018-10-23 Thread jynelson at email dot sc.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87697 --- Comment #3 from jynelson at email dot sc.edu --- Created attachment 44884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44884=edit Casting unrelated types gives an error

[Bug c++/87697] Casting a base class to derived gives no warning

2018-10-23 Thread jynelson at email dot sc.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87697 --- Comment #2 from jynelson at email dot sc.edu --- (In reply to Jonathan Wakely from comment #1) > (In reply to jynelson from comment #0) > > Casting a base class to a derived class gives no warning, even with -Wall > > -Werror enabled. I've

[Bug c++/87697] Casting a base class to derived gives no warning

2018-10-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87697 --- Comment #1 from Jonathan Wakely --- (In reply to jynelson from comment #0) > Casting a base class to a derived class gives no warning, even with -Wall > -Werror enabled. I've been told on IRC that this sort of cast is undefined > behaviour