re PR c++/79490 (ICE when using -fsyntax-only with CATCH unit testing framework header)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 19 Dec 2017 09:26:39 +0000 (09:26 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 19 Dec 2017 09:26:39 +0000 (09:26 +0000)
2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79490
* g++.dg/other/fsyntax-only2.C: New.

From-SVN: r255812

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/fsyntax-only2.C [new file with mode: 0644]

index 1eb45e541e935cceb121f73ffe8be92772a8571b..5c735b0c03961441b2797f80a82718c58cef11f6 100644 (file)
@@ -1,3 +1,8 @@
+2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/79490
+       * g++.dg/other/fsyntax-only2.C: New.
+
 2017-12-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/83444
diff --git a/gcc/testsuite/g++.dg/other/fsyntax-only2.C b/gcc/testsuite/g++.dg/other/fsyntax-only2.C
new file mode 100644 (file)
index 0000000..442a093
--- /dev/null
@@ -0,0 +1,11 @@
+// PR c++/79490
+// { dg-options -fsyntax-only }
+
+struct IRegistryHub {
+  virtual ~IRegistryHub();
+};
+namespace {
+class A : IRegistryHub {};
+A *fn1();
+}
+void fn2() { delete fn1(); }