Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/dependent3.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile { target c++11 } } template<typename c> struct d { using e = c; }; template<class f> struct g { using h = typename d<f>::e; template<class i, class j> auto operator()(i, j k) -> decltype(h{k}); }; template<class l> void m() { int a[1]; l{}(a, a); } int main() { m<g<int *>>(); }