From b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 30 Jan 2020 11:39:04 +0100 Subject: Add testcase of PR c++/90338, already fixed in trunk. PR c++/90338 * g++.dg/pr90338.C: New. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/pr90338.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/pr90338.C (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 842e419..597788a 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 0000000..6944a40 --- /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(); +} -- cgit v1.1