view gcc/testsuite/g++.dg/cpp0x/constexpr-99.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

// Origin PR c++/51462
// { dg-do compile { target c++11 } }

struct A
{
  int i = 0;
};

struct B
{
  A a;
  // P0960R3 allows paren-init.
  constexpr B() : a(0) {} // { dg-error "no matching function" "" { target c++17_down } }
};