This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/81993] [7/8 Regression] -gsplit-dwarf removes some symbols, causing some undefined references


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]