re PR c++/57626 ([C++11] ICE with template alias and member function pointer)

2015-01-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57626
	* g++.dg/cpp0x/vt-57626.C: New.

From-SVN: r219546
This commit is contained in:
Paolo Carlini 2015-01-13 17:19:32 +00:00 committed by Paolo Carlini
parent b6a8baccac
commit 6e5a37dae7
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-01-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57626
* g++.dg/cpp0x/vt-57626.C: New.
2015-01-13 Jakub Jelinek <jakub@redhat.com>
PR fortran/64528

View File

@ -0,0 +1,14 @@
// PR c++/57626
// { dg-do compile { target c++11 } }
struct symbol_set{};
template <typename T, template <typename ...> class TT, typename ... Args>
using bar = void(T::*)(TT<Args...> &, const symbol_set &);
struct converter
{
template <typename Term, typename ... Args,
typename = decltype(bar<Term,Args...>(&Term::multiply))> // { dg-error "pack expansion" }
converter(const Term &);
};