https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81993

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
 % cat CompilerInstance.ii
struct A {
  template <typename SpecificDecl, bool (SpecificDecl::*Acceptable)() const>
  struct B {};
};
struct ObjCMethodDecl : A {
  bool isClassMethod() const {}
  B<ObjCMethodDecl, &ObjCMethodDecl::isClassMethod> classmeth_end() {}
};
int main(){}

 % g++ CompilerInstance.ii
 % g++ -gsplit-dwarf CompilerInstance.ii
/home/trippels/tmp/ccydUZSx.o(.debug_addr+0x0): error: undefined reference to
'ObjCMethodDecl::isClassMethod() const'
collect2: error: ld returned 1 exit status

Reply via email to