Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1z/noexcept-type21.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/89612 // { dg-do compile { target c++17 } } template <typename a> using b = typename a ::c; template <typename> bool d; template <typename, typename> struct e { template <typename f, typename g> e(f, g) {} template <typename h, typename i, typename j> friend auto k(h &&, const j &, i &&) noexcept(d<b<h>, h> &&d<b<i>, i>); }; template <typename l, typename m> e(l, m)->e<l, m>; template <typename l, typename m, typename j> auto k(l &&, const j &, m &&) noexcept(d<b<l>, l> &&d<b<m>, m>); int main() { e(0, [] {}); }