mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
* parser.c (cp_parser_lambda_introducer): Clear scope after each lambda capture. From-SVN: r258043
11 lines
157 B
C
11 lines
157 B
C
// PR c++/71546
|
|
// { dg-do compile { target c++14 } }
|
|
|
|
namespace n { struct make_shared { }; }
|
|
|
|
int main()
|
|
{
|
|
int x1;
|
|
[e = n::make_shared (), x1]() {};
|
|
}
|