https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65108
--- Comment #3 from Jonathan Wakely ---
Indeed, Foo::one is not a definition, but Bar::two is a definition.
https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65108
--- Comment #2 from Andrew Pinski ---
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65108
--- Comment #1 from Andy Wingo ---
I mentioned this bug to Dodji Seketeli who said that this was probably an
instance of early constant folding causing Foo::one to appear unused.
On Dodji's suggestion I recompiled with -fno-eliminate-unused-debu