1 // { dg-do compile { target c++11 } } 2 // { dg-require-visibility "" } 3 // { dg-options "-fvisibility=hidden" } 4 5 template<class T> 6 class MyClass { 7 public: MyClass()8 MyClass() { 9 auto outer = [this]() 10 { 11 auto fn = [this] { }; 12 }; 13 } 14 }; 15 main()16int main() { MyClass<int> r; } 17