]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-99.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-99.C
CommitLineData
358b9253 1// Origin PR c++/51462
4b2e63de 2// { dg-do compile { target c++11 } }
358b9253
DS
3
4struct A
5{
6 int i = 0;
7};
8
9struct B
10{
11 A a;
43aae289
MP
12 // P0960R3 allows paren-init.
13 constexpr B() : a(0) {} // { dg-error "no matching function" "" { target c++17_down } }
358b9253 14};
This page took 5.72858 seconds and 5 git commands to generate.