re PR c++/61358 (Bogus "duplicate label" error after label used within C++11 lambda)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 3 Mar 2018 18:18:25 +0000 (18:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 3 Mar 2018 18:18:25 +0000 (18:18 +0000)
2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61358
* g++.dg/cpp0x/lambda/lambda-61358.C: New.

From-SVN: r258219

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-61358.C [new file with mode: 0644]

index fdab928dbe1cf0d7208e623f566d6b5650014e75..ed9c809febdb4e5400efdd2451ac59a100ed6b46 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/61358
+       * g++.dg/cpp0x/lambda/lambda-61358.C: New.
+
 2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>
 
        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 (file)
index 0000000..21ce741
--- /dev/null
@@ -0,0 +1,7 @@
+// { dg-do compile { target c++11 } }
+
+int main() {
+  goto doit;
+  []() { doit: ; };
+  doit: ;
+}