https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89777
Bug ID: 89777 Summary: Any optimizaton level over -O0 causes crash in dynamic_cast Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: savoiu at yahoo dot com Target Milestone: --- Created attachment 45998 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45998&action=edit Code that causes crash The code in the attachment crashes on execution when compiled as g++ -O* gcc_bug.cpp unless '*' is '0'.