https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Summary|"undefined reference" when |[10/11/12/13/14 Regression]
|using both |"undefined reference" when
|"-fdebug-types-section" and |using both
|"-gsplit-dwarf" |"-fdebug-types-section" and
| |"-gsplit-dwarf" and inline
| |function as a template
| |argument
Target Milestone|--- |11.5
Last reconfirmed| |2023-08-03
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simplified testcase:
```
inline void foo() {}
struct Y
{
template<void (*func)()>
static void bar() {}
};
int main()
{
Y::bar<foo>();
return 0;
}
```
Confirmed.