[C++ RFC / Patch] PR 54080, PR 52875 and more (aka SFINAE vs template recursion depth)

Florian Weimer fweimer@redhat.com
Fri Aug 9 07:34:00 GMT 2013


On 08/09/2013 09:28 AM, Paolo Carlini wrote:

> I see. You know, I was trying to figure out the logic other compilers - two of them, actually - are following, because the really appear to sfinae away infinite recursions. Was trying to imagine cases in which it would be safe.

Could their behavior just be bugs?  Depending on their error recovery 
implementation, not flagging infinite recursion as a hard error in 
SFINAE context could be an easy mistake to make.

-- 
Florian Weimer / Red Hat Product Security Team



More information about the Gcc-patches mailing list