Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor7.C

raw
1 // PR c++/92552
2 // { dg-do compile { target concepts } }
3
4 template <typename T> struct basic_mixin {
5 basic_mixin() requires true;
6 };
7 template <typename Cur>
8 struct mixin : basic_mixin<Cur> {
9 using basic_mixin<Cur>::basic_mixin;
10 };
11 int main() {
12 (void)__is_constructible(mixin<int>);
13 // noexcept(mixin<int>()); also triggers ICE
14 }