https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80489
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This code is obviously wrong, you can't call IterateBody like that, it needs a StaticVisitor template argument. GCC 7 is correct, see https://gcc.gnu.org/gcc-7/porting_to.html#hypothetical-instantiation