public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299
@ 2015-09-28  4:23 ryan.burn at gmail dot com
  2015-09-28  7:58 ` [Bug c++/67737] " trippels at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ryan.burn at gmail dot com @ 2015-09-28  4:23 UTC (permalink / raw)
  To: gcc-bugs

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.
>From gcc-bugs-return-498159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 28 04:44:53 2015
Return-Path: <gcc-bugs-return-498159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118557 invoked by alias); 28 Sep 2015 04:44:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 118394 invoked by uid 48); 28 Sep 2015 04:43:20 -0000
From: "kkojima at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67391] [SH] Convert clrt addc to normal add insn
Date: Mon, 28 Sep 2015 04:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kkojima at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67391-4-Ubh0KV1R4z@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67391-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67391-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg02137.txt.bz2
Content-length: 266

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg391

--- Comment #31 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
(In reply to Kazumoto Kojima from comment #29)

Tests for 5-branch with/without -mlra completed with no new failures
on sh4-unknown-linux-gnu.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299
  2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
@ 2015-09-28  7:58 ` trippels at gcc dot gnu.org
  2015-09-28  8:19 ` trippels at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-09-28  7:58 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

*** This bug has been marked as a duplicate of bug 67686 ***


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299
  2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
  2015-09-28  7:58 ` [Bug c++/67737] " trippels at gcc dot gnu.org
@ 2015-09-28  8:19 ` trippels at gcc dot gnu.org
  2015-09-28 18:12 ` ryan.burn at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-09-28  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The attached testcase is identical to that of PR67686.

If you accidentally attached the wrong file, feel free to reopen this bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299
  2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
  2015-09-28  7:58 ` [Bug c++/67737] " trippels at gcc dot gnu.org
  2015-09-28  8:19 ` trippels at gcc dot gnu.org
@ 2015-09-28 18:12 ` ryan.burn at gmail dot com
  2015-09-28 18:13 ` ryan.burn at gmail dot com
  2015-09-28 19:33 ` [Bug c++/67737] [C++1z] " trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ryan.burn at gmail dot com @ 2015-09-28 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

ryan.burn at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36403|0                           |1
        is obsolete|                            |

--- Comment #3 from ryan.burn at gmail dot com ---
Created attachment 36410
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36410&action=edit
ice code


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/67737] ICE in make_decl_rtl, at varasm.c:1299
  2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
                   ` (2 preceding siblings ...)
  2015-09-28 18:12 ` ryan.burn at gmail dot com
@ 2015-09-28 18:13 ` ryan.burn at gmail dot com
  2015-09-28 19:33 ` [Bug c++/67737] [C++1z] " trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ryan.burn at gmail dot com @ 2015-09-28 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from ryan.burn at gmail dot com ---
yes, sorry. I attached the wrong file.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/67737] [C++1z] ICE in make_decl_rtl, at varasm.c:1299
  2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
                   ` (3 preceding siblings ...)
  2015-09-28 18:13 ` ryan.burn at gmail dot com
@ 2015-09-28 19:33 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-09-28 19:33 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-28
            Summary|ICE in make_decl_rtl, at    |[C++1z] ICE in
                   |varasm.c:1299               |make_decl_rtl, at
                   |                            |varasm.c:1299
     Ever confirmed|0                           |1

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
namespace std {
template <typename _Tp> struct A { static constexpr _Tp value = 1; };
template <typename, typename> struct is_same;
template <typename, typename _To> struct __is_convertible_helper {
  template <typename> static A<bool> __test();
  typedef decltype(__test<_To>()) type;
};
template <typename, typename>
struct is_convertible : __is_convertible_helper<int, int>::type {};
}
namespace detail_variadic_operator {
template <int...> struct and_c_impl { static constexpr int value = 1; };
}
template <int> constexpr bool and_c() {
  return detail_variadic_operator::and_c_impl<>::value;
}
namespace htl {
namespace empty_base_class_namespace {
template <class, class> struct Pack {
  template <class OtherValue> Pack(OtherValue);
};
template <class Tag, class Value> Value &unpack(Pack<Tag, Value>);
}
using empty_base_class_namespace::Pack;
namespace detail_tuple {
struct TupleBase {
  TupleBase(int);
};
}
template <class...> class Tuple : detail_tuple::TupleBase {
  using TupleBase::TupleBase;
};
}
using index_t = int;
template <class X> concept bool cpt_DynamicIndex() {
  return std::is_same<X, index_t>::value;
}
template <class X> concept bool cpt_Index() { return cpt_DynamicIndex<X>(); }
template <class X> concept bool cpt_Extent() {
  return std::is_convertible<X, index_t>::value;
}
template <class... Extents>
requires and_c<cpt_Index<Extents>()...>() class Shape;
namespace detail_concept {
template <class> int match_contiguous_shape;
template <class... Extents>
constexpr bool match_contiguous_shape<Shape<Extents>> = 1;
}
template <class X> concept bool cpt_ContiguousShape() {
  return detail_concept::match_contiguous_shape<X>;
}
template <class> using extent_type = decltype(0);
namespace detail_dimensionality {
struct extents_tag;
}
template <class... Extents>
class Dimensionality
    : htl::Pack<detail_dimensionality::extents_tag, htl::Tuple<Extents...>> {
  using Base =
      htl::Pack<detail_dimensionality::extents_tag, htl::Tuple<Extents...>>;

public:
  Dimensionality(Extents... extents) : Base(htl::Tuple<>(extents...)) {}
  decltype(auto) extents() { return unpack(*this); }
};
template <class... Extents>
requires and_c<cpt_Index<Extents>()...>() class Shape
    : public Dimensionality<Extents...> {
  using Base = Dimensionality<Extents...>;

public:
  Shape(Extents... extents) : Base(extents...) {}
};
template <cpt_Extent... Extents> auto make_shape(Extents... extents) {
  return Shape<extent_type<Extents>...>(extents...);
}
template <cpt_ContiguousShape Shape> auto make_subshape(Shape shape) {
  return shape.extents();
}
auto shape1 = make_shape(0);
auto subshape2 = make_subshape(shape1);


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-28 19:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28  4:23 [Bug c++/67737] New: ICE in make_decl_rtl, at varasm.c:1299 ryan.burn at gmail dot com
2015-09-28  7:58 ` [Bug c++/67737] " trippels at gcc dot gnu.org
2015-09-28  8:19 ` trippels at gcc dot gnu.org
2015-09-28 18:12 ` ryan.burn at gmail dot com
2015-09-28 18:13 ` ryan.burn at gmail dot com
2015-09-28 19:33 ` [Bug c++/67737] [C++1z] " trippels at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).