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

            Bug ID: 67737
           Summary: ICE in make_decl_rtl, at varasm.c:1299
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

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

Here's the stack trace I get when compiling the attached file with -std=c++1z:
In file included from /home/rnburn/proj/echo/k_array/unittest/slice.cpp:2:0:
/home/rnburn/proj/echo/k_array/include/echo/k_array/shape.h: In function ‘auto
echo::k_array::make_shape(const echo::htl::Tuple<Xs ...>&) [with Extents =
{echo::htl::integral_constant<long int, 2l>, echo::htl::integral_constant<long
int, 3l>}]’:
/home/rnburn/proj/echo/k_array/include/echo/k_array/shape.h:47:60: internal
compiler error: in make_decl_rtl, at varasm.c:1299
   return reinterpret_cast<const Shape<Extents...>&>(extents);
                                                            ^
0xf7e6b6 make_decl_rtl(tree_node*)
        ../../gcc/gcc/varasm.c:1298
0x8f3713 expand_return
        ../../gcc/gcc/cfgexpand.c:3392
0x8f3713 expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.c:3570
0x8f3713 expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.c:3695
0x8f4b3a expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.c:5698
0x8fb9e6 execute
        ../../gcc/gcc/cfgexpand.c:6284
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