Debian Codegraph @

clang/test/Sema/PR85343.cpp

raw
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>
15 d(f) {
16 ac<f> a;
17 }
18 };
19 struct a {
20 d b = [=](auto) { (void)[this] {}; };
21 };
22 void b() { new a; }