https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95888
Bug ID: 95888 Summary: Regression in 9.3. GCC freezes when compiling code using boost::poly_collection::segment Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: soropi8907 at remail7 dot com Target Milestone: --- Version 9.3 and later. 9.2 compiles OK. #include <boost/poly_collection/base_collection.hpp> struct base{}; int main() { const boost::base_collection<base> n; #define EXPOSE_BUG 1 #if EXPOSE_BUG n.segment<base>().begin(); #else n.segment<base,nullptr>().begin(); #endif } https://godbolt.org/z/_yau99