From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 010A43858004; Mon, 22 Mar 2021 15:49:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 010A43858004 From: "jmullee at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99717] New: ICE in finish_expr_stmt, at cp/semantics.c:681 Date: Mon, 22 Mar 2021 15:49:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmullee at yahoo dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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, 22 Mar 2021 15:49:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99717 Bug ID: 99717 Summary: ICE in finish_expr_stmt, at cp/semantics.c:681 Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jmullee at yahoo dot com Target Milestone: --- Created attachment 50448 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50448&action=3Dedit g++ -v, specs, src files, etc I wasn't able to make it happen again, but the circumstances were: - using g++ precompiled headers - incrementally editing an include file, replacing ints with enums (which g= et used in a #def macro) - using CGAL, a header-only library with many templates etc error: ----------------------- $ make -f tryMakefile && ./try_hilbersort g++ -I/opt/CGAL/cgal-5.2.1/include -c -o try_hilbersort.o try_hilbersort.cpp In file included from /opt/CGAL/cgal-5.2.1/include/CGAL/basic.h:31, from /opt/CGAL/cgal-5.2.1/include/CGAL/HalfedgeDS_vector.h:23, from try_hilbersort.h:2: /opt/CGAL/cgal-5.2.1/include/CGAL/Polyhedron_incremental_builder_3.h: In instantiation of =E2=80=98CGAL::Polyhedron_incremental_builder_3::Polyhedron_in= cremental_builder_3(CGAL::Polyhedron_incremental_builder_3::HD= S&, bool) [with HalfedgeDS_ =3D CGAL::HalfedgeDS_default; CGAL::Polyhedron_incremental_builder_3::HDS =3D CGAL::HalfedgeDS_default]=E2=80=99: /opt/CGAL/cgal-5.2.1/include/CGAL/IO/Polyhedron_builder_from_STL.h:42:4= 9:=20=20 required from =E2=80=98void CGAL::Polyhedron_builder_from_STL::operato= r()(HDS&) [with HDS =3D CGAL::HalfedgeDS_default]=E2=80=99 try_hilbersort.cpp:44:14: required from here =20=20=20 /opt/CGAL/cgal-5.2.1/include/CGAL/Polyhedron_incremental_builder_3.h:193:29: internal compiler error: in finish_expr_stmt, at cp/semantics.c:681 193 | CGAL_assertion_code(check_protocoll =3D protocoll::crea= ted;) // Polyhedron_incremental_builder_3::CTOR | ^~~~~~~~~~~~~~~ /opt/CGAL/cgal-5.2.1/include/CGAL/assertions.h:103:37: note: in definit= ion of macro =E2=80=98CGAL_assertion_code=E2=80=99 103 | # define CGAL_assertion_code(CODE) CODE | ^~~~ Please submit a full bug report, -----------------------=