From: Paolo Carlini Date: Tue, 19 Dec 2017 09:26:39 +0000 (+0000) Subject: re PR c++/79490 (ICE when using -fsyntax-only with CATCH unit testing framework header) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f2e8b237ce271efb4ece138fd08ed7c4b45d885;p=gcc.git re PR c++/79490 (ICE when using -fsyntax-only with CATCH unit testing framework header) 2017-12-19 Paolo Carlini PR c++/79490 * g++.dg/other/fsyntax-only2.C: New. From-SVN: r255812 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1eb45e541e9..5c735b0c039 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-19 Paolo Carlini + + PR c++/79490 + * g++.dg/other/fsyntax-only2.C: New. + 2017-12-19 Jakub Jelinek 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 index 00000000000..442a09335f3 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/fsyntax-only2.C @@ -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(); }