https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
--- Comment #3 from Ling Nguyen ---
Thanks for quick responses.
A further look into the issue:
I believe there is bug in this piece of code:
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/dwarf2out.cc;h=fa0fe4c41bbd5b13aa5fe6cad6e7d39bbd82174a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
--- Comment #1 from Ling Nguyen ---
Consider this program:
struct X
{
static void foo() {}
};
struct Y
{
template
static void bar() {}
};
int main()
{
Y::bar();
return 0;
}
If it's compiled using something like: gcc -gspli
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
Bug ID: 110885
Summary: "undefined reference" when using both
"-fdebug-types-section" and "-gsplit-dwarf"
Product: gcc
Version: unknown
Status: UNCONFIRMED
Sev