Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/constexpr-init17.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/93803 - ICE with constexpr init and [[no_unique_address]]. // { dg-do compile { target c++20 } } struct empty { }; struct foo { [[no_unique_address]] empty x, x2, x3; constexpr foo() : x{}, x2{} { } }; struct bar : foo { using foo::foo; }; constexpr bar a{};