https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106560
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The full backtrace: t.c:4:1: warning: data definition has no type or storage class 4 | a; | ^ t.c:4:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] t.c:4:1: error: conflicting types for ‘a’; have ‘int’ t.c:2:8: note: previous declaration of ‘a’ with type ‘void **’ 2 | void **a; | ^ Analyzing compilation unit t.c: In function ‘b’: t.c:3:19: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87 3 | void b() { void **c = a; } | ^ 0x182bb35 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /home/apinski/src/upstream-gcc-git/gcc/gcc/tree.cc:8867 0xac8be5 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /home/apinski/src/upstream-gcc-git/gcc/gcc/tree.h:3631 0xf5f04d useless_type_conversion_p(tree_node*, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-expr.cc:87 0xfcd0e4 gimplify_modify_expr /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:6040 0xffb8c1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:15209 0xfd172d gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:7156 0xfbb246 gimplify_and_add(tree_node*, gimple**) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:496 0xfbfcba gimplify_decl_expr /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:1942 0xffc5fb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:15406 0xfd172d gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:7156 0xfbdd58 gimplify_bind_expr /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:1434 0xffc61c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:15410 0xfd172d gimplify_stmt(tree_node**, gimple**) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:7156 0x10003ce gimplify_body(tree_node*, bool) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:16466 0x1000ca4 gimplify_function_tree(tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimplify.cc:16665 0xd4e447 cgraph_node::analyze() /home/apinski/src/upstream-gcc-git/gcc/gcc/cgraphunit.cc:676 0xd504e8 analyze_functions /home/apinski/src/upstream-gcc-git/gcc/gcc/cgraphunit.cc:1240 0xd536b5 symbol_table::finalize_compilation_unit() /home/apinski/src/upstream-gcc-git/gcc/gcc/cgraphunit.cc:2500 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.