https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67544
Bug ID: 67544 Summary: ICE: SIGSEGV in tree_check3 (tree.h:2896) with -fconcepts Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Created attachment 36322 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36322&action=edit reduced testcase Compiler output: $ gcc -fconcepts testcase.C testcase.C:8:45: internal compiler error: Segmentation fault template<typename T> friend struct A<T>::B; ^ 0xd160cf crash_signal /mnt/svn/gcc-trunk/gcc/toplev.c:352 0x762540 tree_check3(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code) /mnt/svn/gcc-trunk/gcc/tree.h:2896 0x762540 lookup_member(tree_node*, tree_node*, int, bool, int) /mnt/svn/gcc-trunk/gcc/cp/search.c:1281 0x74718b make_friend_class(tree_node*, tree_node*, bool) /mnt/svn/gcc-trunk/gcc/cp/friend.c:321 0x70faa9 cp_parser_template_declaration_after_parameters /mnt/svn/gcc-trunk/gcc/cp/parser.c:24506 0x710384 cp_parser_explicit_template_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:24722 0x710384 cp_parser_template_declaration_after_export /mnt/svn/gcc-trunk/gcc/cp/parser.c:24740 0x71095d cp_parser_member_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:21314 0x6ed064 cp_parser_member_specification_opt /mnt/svn/gcc-trunk/gcc/cp/parser.c:21241 0x6ed064 cp_parser_class_specifier_1 /mnt/svn/gcc-trunk/gcc/cp/parser.c:20433 0x6ed064 cp_parser_class_specifier /mnt/svn/gcc-trunk/gcc/cp/parser.c:20669 0x6ed064 cp_parser_type_specifier /mnt/svn/gcc-trunk/gcc/cp/parser.c:15076 0x6fcd8b cp_parser_decl_specifier_seq /mnt/svn/gcc-trunk/gcc/cp/parser.c:12042 0x7115f0 cp_parser_simple_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:11608 0x70afb4 cp_parser_block_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:11555 0x717147 cp_parser_declaration /mnt/svn/gcc-trunk/gcc/cp/parser.c:11452 0x7158ea cp_parser_declaration_seq_opt /mnt/svn/gcc-trunk/gcc/cp/parser.c:11334 0x715c05 cp_parser_translation_unit /mnt/svn/gcc-trunk/gcc/cp/parser.c:4154 0x715c05 c_parse_file() /mnt/svn/gcc-trunk/gcc/cp/parser.c:34271 0x861852 c_common_parse_file() /mnt/svn/gcc-trunk/gcc/c-family/c-opts.c:1058 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r227604 - ICE