aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/PR85343.cpp
blob: d90ef19d42345517090f81fd5d55642b28bf3c47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang_cc1 -std=c++14 -verify %s
// expected-no-diagnostics

template <typename c> auto ab() -> c ;

template <typename> struct e {};

template <typename f> struct ac {
  template <typename h> static e<decltype(ab<h>()(ab<int>))> i;
  decltype(i<f>) j;
};

struct d {
  template <typename f>
  d(f) { 
    ac<f> a;
  }
};
struct a {
  d b = [=](auto) { (void)[this] {}; };
};
void b() { new a; }