From 6e5a37dae73dc82c735d85f5d1f835f91cd36352 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 13 Jan 2015 17:19:32 +0000 Subject: [PATCH] re PR c++/57626 ([C++11] ICE with template alias and member function pointer) 2015-01-13 Paolo Carlini PR c++/57626 * g++.dg/cpp0x/vt-57626.C: New. From-SVN: r219546 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/vt-57626.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/vt-57626.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 79a43d628e8..5a09e16cb8c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-13 Paolo Carlini + + PR c++/57626 + * g++.dg/cpp0x/vt-57626.C: New. + 2015-01-13 Jakub Jelinek PR fortran/64528 diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-57626.C b/gcc/testsuite/g++.dg/cpp0x/vt-57626.C new file mode 100644 index 00000000000..ca6b7c51967 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/vt-57626.C @@ -0,0 +1,14 @@ +// PR c++/57626 +// { dg-do compile { target c++11 } } + +struct symbol_set{}; + +template class TT, typename ... Args> +using bar = void(T::*)(TT &, const symbol_set &); + +struct converter +{ + template (&Term::multiply))> // { dg-error "pack expansion" } + converter(const Term &); +}; -- 2.30.2