https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99717
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=50448&action=edit 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 get 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 ‘CGAL::Polyhedron_incremental_builder_3<HalfedgeDS_>::Polyhedron_incremental_builder_3(CGAL::Polyhedron_incremental_builder_3<HalfedgeDS_>::HDS&, bool) [with HalfedgeDS_ = CGAL::HalfedgeDS_default<Traits>; CGAL::Polyhedron_incremental_builder_3<HalfedgeDS_>::HDS = CGAL::HalfedgeDS_default<Traits>]’: /opt/CGAL/cgal-5.2.1/include/CGAL/IO/Polyhedron_builder_from_STL.h:42:49: required from ‘void CGAL::Polyhedron_builder_from_STL<HDS>::operator()(HDS&) [with HDS = CGAL::HalfedgeDS_default<Traits>]’ try_hilbersort.cpp:44:14: required from here /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 = protocoll::created;) // Polyhedron_incremental_builder_3::CTOR | ^~~~~~~~~~~~~~~ /opt/CGAL/cgal-5.2.1/include/CGAL/assertions.h:103:37: note: in definition of macro ‘CGAL_assertion_code’ 103 | # define CGAL_assertion_code(CODE) CODE | ^~~~ Please submit a full bug report, -----------------------