https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101065
Bug ID: 101065 Summary: "internal compiler error: Segmentation fault signal terminated program cc1plus" when compiling some malformed code Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: 786246442 at qq dot com Target Milestone: --- A minified example is: ``` class A {public: class B;}; class C {public: typedef ::A A; class A::B {}; ``` Expected: g++ will return where the error in the code is Actual: g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <\usr\share\doc\gcc-10\README.Bugs> for instructions.