https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117447
Bug ID: 117447 Summary: ICE in BPF GCC-trunk segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: suyuchang at whu dot edu.cn Target Milestone: --- Inuput: template < typename X1 > struct [ [ X2 :: X2 ( ) ... ] ] X3 { } ; See Compiler Explorer:https://godbolt.org/z/8E1jY6vnY Output: <source>:1:58: warning: 'X2::X2' scoped attribute directive ignored [-Wattributes] 1 | template < typename X1 > struct [ [ X2 :: X2 ( ) ... ] ] X3 { } ; | ^~ *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_TYPE | bpf_collect_enum_info <source>:1:65: internal compiler error: Segmentation fault 1 | template < typename X1 > struct [ [ X2 :: X2 ( ) ... ] ] X3 { } ; | ^ 0x206ddad diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x208349e internal_error(char const*, ...) ???:0 0x1d9838e ctfc_get_strtab_len(ctf_container*, int) ???:0 0x17cb79a btf_ext_output ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1 BPF GCC 13.3.0 compiles this code ok, but crash in BPF GCC-trunk.