public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-10-branch)] Add testcase of PR c++/90338, already fixed in trunk.
@ 2020-01-30 20:58 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-01-30 20:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe

commit b0e9b18ed432c4b7cb9a4b963b65911b4c103cbe
Author: Paolo Carlini <paolo.carlini@oracle.com>
Date:   Thu Jan 30 11:39:04 2020 +0100

    Add testcase of PR c++/90338, already fixed in trunk.
    
    	PR c++/90338
    	* g++.dg/pr90338.C: New.

Diff:
---
 gcc/testsuite/ChangeLog        |  5 +++++
 gcc/testsuite/g++.dg/pr90338.C | 14 ++++++++++++++
 2 files changed, 19 insertions(+)

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>();
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-30 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 20:58 [gcc(refs/vendors/redhat/heads/gcc-10-branch)] Add testcase of PR c++/90338, already fixed in trunk Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).