https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66962
Bug ID: 66962 Summary: [concepts] overloaded function causing memory blow-up and ICE Product: gcc Version: c++-concepts Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.niebler at gmail dot com Target Milestone: --- Created attachment 36028 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36028&action=edit preprocessed source Compile with: g++ -std=gnu++1z -c iterator.i.cpp Result: g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. It seems to have something to do with the iter_swap2 definition. Commenting out those two functions makes the compile complete successfully (although IMO it takes longer than it should, so we're probably already in trouble).