https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60935
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|accepts-invalid, diagnostic |compile-time-hog --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For me, if I change operator % to return correctly, it is not an endless loop, just takes a long long time to error out. Also clang takes just as long to error out. I can get GCC to error out quickly with -ftemplate-depth=20 . I don't think there might be anything here to fix really.