From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 256723858407; Mon, 4 Oct 2021 15:05:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 256723858407 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper Date: Mon, 04 Oct 2021 15:05:47 +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: 10.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2021 15:05:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102588 --- Comment #3 from Martin Li=C5=A1ka --- Reduced test-case: namespace std { typedef int size_t; template class vector { public: typedef size_t size_type; }; } // namespace std typedef int quint32; typedef double qreal; class QPointF { qreal yp; }; namespace OpenOrienteering { class MapCoord; class MapCoordF : QPointF {}; typedef std::vector MapCoordVector; class PathCoord { public: using size_type =3D quint32; using length_type =3D float; using param_type =3D MapCoordF; size_type index; param_type param; length_type clen; }; class PathObject { public: PathCoord findPathCoordForIndex(MapCoordVector::size_type); }; struct ObjectPathCoord : PathCoord { ObjectPathCoord(PathObject *, size_type); }; ObjectPathCoord::ObjectPathCoord(PathObject *object, size_type) : PathCoord{object->findPathCoordForIndex(index)} {} } // namespace OpenOrienteering=