From: Paolo Carlini Date: Thu, 30 Jan 2020 10:39:04 +0000 (+0100) Subject: Add testcase of PR c++/90338, already fixed in trunk. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe;p=gcc.git Add testcase of PR c++/90338, already fixed in trunk. PR c++/90338 * g++.dg/pr90338.C: New. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 842e4198917..597788a80a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-30 Paolo Carlini + + PR c++/90338 + * g++.dg/pr90338.C: New. + 2020-01-30 Jakub Jelinek PR target/91824 diff --git a/gcc/testsuite/g++.dg/pr90338.C b/gcc/testsuite/g++.dg/pr90338.C new file mode 100644 index 00000000000..6944a404725 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr90338.C @@ -0,0 +1,14 @@ +struct B { + B(); // This type is non-literal + void func(); +}; + +template +void match(); + +template +void match(); + +void func() { + match(); +}