https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96441
Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.j.odwyer at gmail dot com --- Comment #2 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> --- Still there in trunk. Here's a very slightly reduced version: // https://godbolt.org/z/8arT4Gn6P enum a : int; template<class = enum a : int {b}>; template<> enum a : int {c}; ==== <source>:2:35: error: expected unqualified-id before ';' token 2 | template<class = enum a : int {b}>; | ^ <source>:3:26: internal compiler error: Segmentation fault 3 | template<> enum a : int {c}; | ^ 0x20037b9 internal_error(char const*, ...) ???:0 0x8c7150 build_enumerator(tree_node*, tree_node*, tree_node*, tree_node*, unsigned int) ???:0 0xa0bea5 c_parse_file() ???:0 0xb92e22 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.