gcc bug? constinit does not require constexpr ctor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

simple question: should in the following example the constinit case be
also impossible if the required ctor is not constexpr?

struct B {
    /*constexpr*/ B() {}
};

struct A {
    constexpr static inline B b2{}; // not possible
    constinit static inline B b1{}; // should this NOT possible either?
};

int main() {
    A a;
}



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux