aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/auto53.C13
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a61b668..dc261ed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-13 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/63508
+ * g++.dg/cpp0x/auto53.C: New.
+
2019-03-13 Richard Biener <rguenther@suse.de>
PR middle-end/89677
diff --git a/gcc/testsuite/g++.dg/cpp0x/auto53.C b/gcc/testsuite/g++.dg/cpp0x/auto53.C
new file mode 100644
index 0000000..68b408e
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/auto53.C
@@ -0,0 +1,13 @@
+// PR c++/63508
+// { dg-do compile { target c++11 } }
+
+template <typename T> class c {
+ void mf() { }
+ using m = void (c::*) ();
+public:
+ c() {
+ auto x = m{&c::mf};
+ }
+};
+
+int main() { c<int> o{}; }