re PR c++/60366 (ICE with self-invoking lambdas)
PR c++/60366 * g++.dg/cpp0x/lambda/lambda-ice32.C: New test. From-SVN: r272092
This commit is contained in:
parent
5834bdc3d4
commit
dcba286a9a
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2019-06-09 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR c++/60366
|
||||
* g++.dg/cpp0x/lambda/lambda-ice32.C: New test.
|
||||
|
||||
019-06-09 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/89365
|
||||
|
|
9
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice32.C
Normal file
9
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice32.C
Normal file
|
@ -0,0 +1,9 @@
|
|||
// PR c++/60366
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
void
|
||||
fn ()
|
||||
{
|
||||
auto f = [](const struct __lambda0 &self) { self(self); }; // { dg-error "" }
|
||||
f(f); // { dg-error "" }
|
||||
}
|
Loading…
Add table
Reference in a new issue