re PR c++/84518 (ICE with lambda capturing broken variable)
2019-03-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/84518 * g++.dg/cpp0x/lambda/lambda-ice30.C: New. * g++.dg/cpp0x/lambda/lambda-ice31.C: Likewise. From-SVN: r269469
This commit is contained in:
parent
90a0bf4e02
commit
c7163b643e
@ -1,3 +1,9 @@
|
||||
2019-03-07 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/84518
|
||||
* g++.dg/cpp0x/lambda/lambda-ice30.C: New.
|
||||
* g++.dg/cpp0x/lambda/lambda-ice31.C: Likewise.
|
||||
|
||||
2019-03-07 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR translation/79999
|
||||
|
13
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C
Normal file
13
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C
Normal file
@ -0,0 +1,13 @@
|
||||
// PR c++/84518
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template<int> void foo()
|
||||
{
|
||||
int x[=]; // { dg-error "expected" }
|
||||
[&x]{};
|
||||
}
|
||||
|
||||
void bar()
|
||||
{
|
||||
foo<0>();
|
||||
}
|
8
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice31.C
Normal file
8
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice31.C
Normal file
@ -0,0 +1,8 @@
|
||||
// PR c++/84518
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template<typename T> void foo()
|
||||
{
|
||||
T x[=]; // { dg-error "expected" }
|
||||
[&x]{};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user