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++/69091] [6 Regrssion] valid code with operator| causes ICE "tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:12851"


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

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Sat Jan 16 02:37:09 2016
New Revision: 232463

URL: https://gcc.gnu.org/viewcvs?rev=232463&root=gcc&view=rev
Log:
Fix PR c++/69091 (ICE with operator overload having 'auto' return type)

gcc/cp/ChangeLog:

        PR c++/69091
        * pt.c (type_dependent_expression_p): For a function template
        specialization, a type is dependent iff any of its template
        arguments are.

gcc/testsuite/ChangeLog:

        PR c++/69091
        * g++.dg/template/pr69091.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/template/pr69091.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.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]