This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66289] [5/6 Regression] "error: ambiguous template instantiation" with partial specialization defined in terms of alias template


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66289

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jun 10 15:17:57 2015
New Revision: 224331

URL: https://gcc.gnu.org/viewcvs?rev=224331&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-48.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]