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