Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor10.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++/94819 // { dg-do compile { target concepts } } struct dna4 {}; struct rna4 {}; struct alphabet_tuple_base { template <typename component_type> requires __is_same(component_type, rna4) alphabet_tuple_base(component_type) {} }; struct structured_rna : alphabet_tuple_base { using alphabet_tuple_base::alphabet_tuple_base; }; structured_rna t2{dna4{}}; // { dg-error "no match" } structured_rna t3{rna4{}}; // { dg-bogus "no match" }