From 88aa59ff7ede25ef44c0dafc2b06e2eaf9080d8a Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sat, 3 Mar 2018 18:18:25 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fdab928..ed9c809 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2018-03-03 Paolo Carlini + PR c++/61358 + * g++.dg/cpp0x/lambda/lambda-61358.C: New. + +2018-03-03 Paolo Carlini + PR c++/67370 * g++.dg/cpp0x/lambda/lambda-67370.C: New. 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 0000000..21ce741 --- /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: ; +} -- 2.7.4