https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77629

            Bug ID: 77629
           Summary: internal compiler error: same canonical type node for
                    different types
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wen...@mitsuba-renderer.org
  Target Milestone: ---

Created attachment 39640
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39640&action=edit
Preprocessed source code

I am running into the following internal compiler error with GCC TRUNK. The
preprocessed file is attached.

$ /usr/local/bin/gcc7 out.cpp

In file included from include/simdarray/array.h:58:0,
                 from tests/testsuite.cpp:21:
include/simdarray/array_recursive.h:124:93: internal compiler error: same
canonical type node for different types simd::ArrayBase<Scalar_, Size_,
ApproximateMath_, Mode_, Derived, typename
std::enable_if<(simd::detail::SIMDTraits<Scalar, Size>::peel != -1),
void>::type>::Base and simd::ArrayOperations<Scalar_, Size_, ApproximateMath_,
Mode_, Derived>
     SIMD_INLINE ArrayBase(Scalar value) : a1(value), a2(value) { }
                                                                               
             ^
0x781d74 comptypes(tree_node*, tree_node*, int)
        ../../gcc/cp/typeck.c:1437
0x6bcd01 resolve_typename_type(tree_node*, bool)
        ../../gcc/cp/pt.c:23721
0x7802ec structural_comptypes
        ../../gcc/cp/typeck.c:1204
0x7848ad comptypes(tree_node*, tree_node*, int)
        ../../gcc/cp/typeck.c:1409
0x7848ad compparms(tree_node const*, tree_node const*)
        ../../gcc/cp/typeck.c:1539
0x703b5c add_method(tree_node*, tree_node*, tree_node*)
        ../../gcc/cp/class.c:1155
0x7d0c64 finish_member_declaration(tree_node*)
        ../../gcc/cp/semantics.c:2997
0x76d3d8 cp_parser_member_declaration
        ../../gcc/cp/parser.c:22770
0x747b7a cp_parser_member_specification_opt
        ../../gcc/cp/parser.c:22331
0x747b7a cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:21496
0x74a069 cp_parser_class_specifier
        ../../gcc/cp/parser.c:21745
0x74a069 cp_parser_type_specifier
        ../../gcc/cp/parser.c:15971
0x75da97 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:12889
0x76b965 cp_parser_single_declaration
        ../../gcc/cp/parser.c:25975
0x76bd0c cp_parser_template_declaration_after_parameters
        ../../gcc/cp/parser.c:25667
0x76c68c cp_parser_explicit_template_declaration
        ../../gcc/cp/parser.c:25902
0x76c68c cp_parser_template_declaration_after_export
        ../../gcc/cp/parser.c:25920
0x7735a9 cp_parser_declaration
        ../../gcc/cp/parser.c:12209
0x771d7b cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:12139
0x7724b2 cp_parser_namespace_body
        ../../gcc/cp/parser.c:17763
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.

Reply via email to