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++/11858] Name lookup error ignored when instantiated from expression within sizeof() in template function parameter


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

--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Sun Jan 24 17:45:21 2016
New Revision: 232778

URL: https://gcc.gnu.org/viewcvs?rev=232778&root=gcc&view=rev
Log:
Revert "Fix the remaining PR c++/24666 blockers"

gcc/cp/ChangeLog:

        Revert:
        2016-01-18  Patrick Palka  <ppalka@gcc.gnu.org>

        PR c++/11858
        PR c++/24663
        PR c++/24664
        * decl.c (grokdeclarator): Don't decay array parameter type to
        a pointer type if it's dependent.
        (grokparms): Invoke strip_top_quals instead of directly invoking
        cp_build_qualified_type.
        * pt.c (decay_dependent_array_parm_type): New static function.
        (type_unification_real): Call decay_dependent_array_parm_type
        to decay a dependent array parameter type to its corresponding
        pointer type before unification.
        (more_specialized_fn): Likewise.
        (get_bindings): Likewise.
        * tree.c (cp_build_qualified_type): Trivial typofix in
        documentation.

gcc/testsuite/ChangeLog:

        Revert:
        2016-01-18  Patrick Palka  <ppalka@gcc.gnu.org>

        PR c++/11858
        PR c++/24663
        PR c++/24664
        * g++.dg/template/pr11858.C: New test.
        * g++.dg/template/pr24663.C: New test.
        * g++.dg/template/unify12.C: New test.
        * g++.dg/template/unify13.C: New test.
        * g++.dg/template/unify14.C: New test.
        * g++.dg/template/unify15.C: New test.
        * g++.dg/template/unify16.C: New test.
        * g++.dg/template/unify17.C: New test.


Removed:
    trunk/gcc/testsuite/g++.dg/template/pr11858.C
    trunk/gcc/testsuite/g++.dg/template/pr24663.C
    trunk/gcc/testsuite/g++.dg/template/unify12.C
    trunk/gcc/testsuite/g++.dg/template/unify13.C
    trunk/gcc/testsuite/g++.dg/template/unify14.C
    trunk/gcc/testsuite/g++.dg/template/unify15.C
    trunk/gcc/testsuite/g++.dg/template/unify16.C
    trunk/gcc/testsuite/g++.dg/template/unify17.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog

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