This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/81993] [7/8 Regression] -gsplit-dwarf removes some symbols, causing some undefined references
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Aug 2017 07:50:42 +0000
- Subject: [Bug debug/81993] [7/8 Regression] -gsplit-dwarf removes some symbols, causing some undefined references
- Auto-submitted: auto-generated
- References: <bug-81993-4@http.gcc.gnu.org/bugzilla/>
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