[Bug debug/110885] [10/11/12/13/14 Regression] "undefined reference" when using both "-fdebug-types-section" and "-gsplit-dwarf" and inline function as a template argument

2023-08-03 Thread linh.lrd at gmail dot com via Gcc-bugs
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

[Bug debug/110885] "undefined reference" when using both "-fdebug-types-section" and "-gsplit-dwarf"

2023-08-03 Thread linh.lrd at gmail dot com via Gcc-bugs
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

[Bug other/110885] New: "undefined reference" when using both "-fdebug-types-section" and "-gsplit-dwarf"

2023-08-02 Thread linh.lrd at gmail dot com via Gcc-bugs
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