https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95930
Bug ID: 95930 Summary: ICE: Segmentation fault signal terminated program cc1plus Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, reduced by C-Reduce, makes GCC-trunk ICE with Segmentation fault signal terminated program cc1plus. $cat bug.cc long a = [] ( class { $g++ bug.cc bug.cc:1:24: error: types may not be defined in parameter types 1 | long a = [] ( class { | ^ bug.cc:2: error: expected ‘}’ at end of input bug.cc:1:24: note: to match this ‘{’ 1 | long a = [] ( class { | ^ bug.cc:2: error: expected ‘,’ or ‘...’ at end of input bug.cc:1:25: error: expected ‘)’ at end of input 1 | long a = [] ( class { | ~ ^ | ) g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. $g++ --version g++ (GCC) 11.0.0 20200626 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.