23 lines · cpp
1// RUN: %clang_cc1 -std=c++14 -verify %s2// expected-no-diagnostics3 4template <typename c> auto ab() -> c ;5 6template <typename> struct e {};7 8template <typename f> struct ac {9 template <typename h> static e<decltype(ab<h>()(ab<int>))> i;10 decltype(i<f>) j;11};12 13struct d {14 template <typename f>15 d(f) { 16 ac<f> a;17 }18};19struct a {20 d b = [=](auto) { (void)[this] {}; };21};22void b() { new a; }23