https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66270
Bug ID: 66270 Summary: ICE: canonical types differ for identical types Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 35608 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35608&action=edit Preprocessed source as generated by -freport-bug GCC 6.0.0 svn 223625 In file included from Vec.h:3:0, from Example.cc:8: Vec8Float.h: In member function ‘avx::vec<float, 8ul>::Value& avx::vec<float, 8ul>::operator[](std::size_t)’: Vec8Float.h:104:21: internal compiler error: canonical types differ for identical types avx::vec<float, 8ul>::Value* {aka float*} and float* return ymm[index]; ^ 0x72abbe comptypes(tree_node*, tree_node*, int) /home/jamrial/gcc-svn/gcc/cp/typeck.c:1423 0x745b4a ocp_convert(tree_node*, tree_node*, int, int, int) /home/jamrial/gcc-svn/gcc/cp/cvt.c:704 0x5ece73 convert_like_real /home/jamrial/gcc-svn/gcc/cp/call.c:6591 0x5f897b initialize_reference(tree_node*, tree_node*, int, int) /home/jamrial/gcc-svn/gcc/cp/call.c:9780 0x734c9c check_return_expr(tree_node*, bool*) /home/jamrial/gcc-svn/gcc/cp/typeck.c:8730 0x76fc6e finish_return_stmt(tree_node*) /home/jamrial/gcc-svn/gcc/cp/semantics.c:887 0x715a1e cp_parser_jump_statement /home/jamrial/gcc-svn/gcc/cp/parser.c:11064 0x715a1e cp_parser_statement /home/jamrial/gcc-svn/gcc/cp/parser.c:9707 0x715ff2 cp_parser_statement_seq_opt /home/jamrial/gcc-svn/gcc/cp/parser.c:10095 0x71614b cp_parser_compound_statement /home/jamrial/gcc-svn/gcc/cp/parser.c:10049 0x71637b cp_parser_function_body /home/jamrial/gcc-svn/gcc/cp/parser.c:19223 0x71637b cp_parser_ctor_initializer_opt_and_function_body /home/jamrial/gcc-svn/gcc/cp/parser.c:19259 0x717200 cp_parser_function_definition_after_declarator /home/jamrial/gcc-svn/gcc/cp/parser.c:23519 0x71a804 cp_parser_late_parsing_for_member /home/jamrial/gcc-svn/gcc/cp/parser.c:24202 0x6f58f9 cp_parser_class_specifier_1 /home/jamrial/gcc-svn/gcc/cp/parser.c:20079 0x6f58f9 cp_parser_class_specifier /home/jamrial/gcc-svn/gcc/cp/parser.c:20105 0x6f58f9 cp_parser_type_specifier /home/jamrial/gcc-svn/gcc/cp/parser.c:14734 0x708bce cp_parser_decl_specifier_seq /home/jamrial/gcc-svn/gcc/cp/parser.c:11965 0x7181f8 cp_parser_single_declaration /home/jamrial/gcc-svn/gcc/cp/parser.c:23773 0x718f3d cp_parser_explicit_specialization /home/jamrial/gcc-svn/gcc/cp/parser.c:14630