https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84973
Bug ID: 84973 Summary: internal compiler error: Segmentation fault (tree_check()/ultimate_transparent_alias_target()) Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: template <int> void a() { typedef struct { void b() try { b; } catch (short) { } } c; } Output: $ cc1plus void a() void a()::<unnamed struct>::b() <stdin>: At global scope: <stdin>:6:1: internal compiler error: Segmentation fault 0x3152ce9 crash_signal /home/vegard/git/gcc/gcc/toplev.c:325 0x41a568c tree_check(tree_node*, char const*, int, char const*, tree_code) /home/vegard/git/gcc/gcc/tree.h:3131 0x41a568c ultimate_transparent_alias_target /home/vegard/git/gcc/gcc/varasm.c:1285 0x41ab7a7 notice_global_symbol(tree_node*) /home/vegard/git/gcc/gcc/varasm.c:1670 0x1995af3 cgraph_node::finalize_function(tree_node*, bool) /home/vegard/git/gcc/gcc/cgraphunit.c:452 0x128999b expand_or_defer_fn(tree_node*) /home/vegard/git/gcc/gcc/cp/semantics.c:4253 0xc6c3f8 c_parse_final_cleanups() /home/vegard/git/gcc/gcc/cp/decl2.c:4896 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. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu)