On 9/3/19 4:08 PM, Marek Polacek wrote:
First constinit bug report (yay?). The problem is that while I made sure that constinit variable templates work as they should, I clearly neglected ordinary static variables declared constinit in function templates.
Hmm, right, locals don't get DECL_TEMPLATE_INFO.
As an aside, I'm concerned that if we're required to handle // Foo.h struct Foo { constinit static int x; }; // Foo.cpp int Foo::x = 42; we might need to resurrect DECL_DECLARED_CONSTINIT_P...
Or use an (internal) attribute? Jason