Commit a2dbbda8 by Marek Polacek

PR c++/92058 - constinit malfunction in static data member.

	* g++.dg/cpp2a/constinit15.C: New test.

From-SVN: r277990
parent bb74ef9e
2019-11-08 Mark Eggleston <mark.eggleston@codethink.com>
Jim MacArthur <jim.macarthur@codethink.co.uk>
2019-11-08 Marek Polacek <polacek@redhat.com>
PR c++/92058 - constinit malfunction in static data member.
* g++.dg/cpp2a/constinit15.C: New test.
2019-11-08 Mark Eggleston <mark.eggleston@codethink.com>
Jim MacArthur <jim.macarthur@codethink.co.uk>
* gfortran.dg/dec_char_conversion_in_assignment_1.f90: New test.
* gfortran.dg/dec_char_conversion_in_assignment_2.f90: New test.
......
// PR c++/92058 - constinit malfunction in static data member.
// { dg-do compile { target c++2a } }
struct B {
B() {}
};
struct A {
constinit static inline B b1{}; // { dg-error "does not have a constant initializer|call to non-.constexpr. function" }
};
int main() {
A a;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment