From: Paolo Carlini Date: Sat, 3 Mar 2018 18:18:25 +0000 (+0000) Subject: re PR c++/61358 (Bogus "duplicate label" error after label used within C++11 lambda) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88aa59ff7ede25ef44c0dafc2b06e2eaf9080d8a;p=gcc.git re PR c++/61358 (Bogus "duplicate label" error after label used within C++11 lambda) 2018-03-03 Paolo Carlini PR c++/61358 * g++.dg/cpp0x/lambda/lambda-61358.C: New. From-SVN: r258219 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fdab928dbe1..ed9c809febd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-03 Paolo Carlini + + PR c++/61358 + * g++.dg/cpp0x/lambda/lambda-61358.C: New. + 2018-03-03 Paolo Carlini PR c++/67370 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C new file mode 100644 index 00000000000..21ce741524a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C @@ -0,0 +1,7 @@ +// { dg-do compile { target c++11 } } + +int main() { + goto doit; + []() { doit: ; }; + doit: ; +}