mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 03:06:06 +00:00

Skip explicit this check in non-valid scopes due to `null` type in lambdas with invalid captures or incomplete parameter lists during parsing Fixes #91536
5 lines
179 B
C++
5 lines
179 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
|
|
|
decltype([]()->decltype(this) { }) a; // expected-error {{invalid use of 'this' outside of a non-static member function}}
|
|
|