https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80981
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 41473 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41473&action=edit Original test-case Attaching original test-case, where I get: ../../v8/src/objects-body-descriptors.h: In static member function ‘static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*, int)’: ../../v8/src/objects-body-descriptors.h:102:20: error: no matching function for call to ‘v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*&)’ ../../v8/src/objects-body-descriptors.h:84:22: note: candidate: template<int start_offset, int end_offset, int size> template<class ObjectVisitor> static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*, ObjectVisitor*) ../../v8/src/objects-body-descriptors.h:84:22: note: template argument deduction/substitution failed: ../../v8/src/objects-body-descriptors.h:102:20: note: candidate expects 2 arguments, 1 provided ../../v8/src/objects-body-descriptors.h:89:22: note: candidate: template<int start_offset, int end_offset, int size> template<class ObjectVisitor> static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*, int, ObjectVisitor*) ../../v8/src/objects-body-descriptors.h:89:22: note: template argument deduction/substitution failed: ../../v8/src/objects-body-descriptors.h:102:20: note: candidate expects 3 arguments, 1 provided ../../v8/src/objects-body-descriptors.h:95:22: note: candidate: template<int start_offset, int end_offset, int size> template<class StaticVisitor> static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*) ../../v8/src/objects-body-descriptors.h:95:22: note: template argument deduction/substitution failed: ../../v8/src/objects-body-descriptors.h:102:20: note: couldn't deduce template parameter ‘StaticVisitor’ ../../v8/src/objects-body-descriptors.h:101:22: note: candidate: template<int start_offset, int end_offset, int size> template<class StaticVisitor> static void v8::internal::FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(v8::internal::HeapObject*, int) ../../v8/src/objects-body-descriptors.h:101:22: note: template argument deduction/substitution failed: ../../v8/src/objects-body-descriptors.h:102:20: note: candidate expects 2 arguments, 1 provided which should point to another function.