https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98032
Bug ID: 98032 Summary: [9 Regression] ICE (segfault) on arm-linux-gnueabihf Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- Created attachment 49635 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49635&action=edit preprocessed source seen with the gcc-9 branch 20201126 on arm-linux-gnueabihf, gives a correct error message with the gcc-10 branch and the trunk. worked with the 9.3.0 release. Also attaching the unreduced test case (which is valid code), therefor tagging with ice-on-valid and ice-on-invalid. gcc is configured with --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-default-pie $ cat vcldemo.ii class Thread { public: virtual ~Thread(); virtual void join(); }; class SimpleReferenceObject { protected: virtual ~SimpleReferenceObject(); }; class Trans_NS_salhelper_Thread : SimpleReferenceObject, Thread { public: using Thread::join; }; class RenderThread : Trans_NS_salhelper_Thread { RenderThread() { join() } }; $ g++-9 -c -std=c++17 -O0 -Wall -fstack-protector-strong vcldemo.ii vcldemo.ii: In constructor 'RenderThread::RenderThread()': vcldemo.ii:15:25: internal compiler error: Segmentation fault 15 | RenderThread() { join() } | ^ Please submit a full bug report, with preprocessed source if appropriate. $ g++-10 -c -std=c++17 -O0 -Wall vcldemo.ii vcldemo.ii: In constructor 'RenderThread::RenderThread()': vcldemo.ii:15:26: error: expected ';' before '}' token 15 | RenderThread() { join() } | ^~ | ;