https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91874
Bug ID: 91874 Summary: ICE compiling constexpr function using another struct's member as array size in template Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: quuuuuuuuux at gmail dot com Target Milestone: --- Created attachment 46920 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46920&action=edit minimal testcase, no includes Looks like infinite recursion. $ g++ repro.hxx g++: internal compiler error: Segmentation fault signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. $ g++ --version g++ (GCC) 9.1.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.