https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65108
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think this is a valid bug as you are violating C++. That is you don't have a definition for Foo::one. This is why debugging info is not being outputted.