aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2020-01-30 11:39:04 +0100
committerPaolo Carlini <paolo.carlini@oracle.com>2020-01-30 11:39:04 +0100
commitb0e9b18ed432c4b7cb9a4b963b65911b4c103cbe (patch)
treef85906ec27cd823a24539079af4374bd2b6fe1cb /gcc
parentd37c81f476c17d292943189335d745c3fb817b7d (diff)
downloadgcc-b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe.zip
gcc-b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe.tar.gz
gcc-b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe.tar.bz2
Add testcase of PR c++/90338, already fixed in trunk.
PR c++/90338 * g++.dg/pr90338.C: New.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/pr90338.C14
2 files changed, 19 insertions, 0 deletions
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 <paolo.carlini@oracle.com>
+
+ PR c++/90338
+ * g++.dg/pr90338.C: New.
+
2020-01-30 Jakub Jelinek <jakub@redhat.com>
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 <class Class, void (Class::*Ptr)()>
+void match();
+
+template <class Any, Any Value>
+void match();
+
+void func() {
+ match<B, &B::func>();
+}