re PR c++/66289 ("error: ambiguous template instantiation" with partial specializatio...
authorJason Merrill <jason@redhat.com>
Wed, 10 Jun 2015 15:17:57 +0000 (11:17 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 10 Jun 2015 15:17:57 +0000 (11:17 -0400)
commit1a4cd2cd7e7266b07e28fe4d127cfd6e6bac0916
tree22325591562920d7d55ce475ed6285db1487f725
parent768b666466931611b0b39f125cb0645b1cf3d102
re PR c++/66289 ("error: ambiguous template instantiation" with partial specialization defined in terms of alias template)

PR c++/66289
* cp-tree.h (TEMPLATE_DECL_COMPLEX_ALIAS_P): New.
* pt.c (push_template_decl_real): Set it.
(dependent_alias_template_spec_p): Use it.
(dependent_type_p_r): Use dependent_alias_template_spec_p.
(uses_all_template_parms_data, uses_all_template_parms_r)
(complex_alias_template_p): New.
(get_template_parm_index): Handle BOUND_TEMPLATE_TEMPLATE_PARM.

From-SVN: r224331
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/alias-decl-48.C [new file with mode: 0644]