https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80489
Bug ID: 80489 Summary: Regression no matching function Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu // REGRESSION g++ 6.3.0 compiles successfully // g++ 7.0.1 trunk 246751 emits error message // In static member function ‘static void FixedBodyDescriptor<start_offset, end_offset, size>::IB(int*, int)’: // error: no matching function for call to ‘FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody(int*&)’ // IterateBody(obj); template <int start_offset, int end_offset, int size> class FixedBodyDescriptor { template <typename StaticVisitor> static inline void IterateBody(int* obj) {} template <typename StaticVisitor> static inline void IB(int* obj, int object_size) { IterateBody(obj); } };