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++/23797] [3.4 Regression] ICE on typename outside template



------- Comment #16 from reichelt at gcc dot gnu dot org  2005-11-16 13:03 -------
Subject: Bug 23797

Author: reichelt
Date: Wed Nov 16 13:03:13 2005
New Revision: 107081

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107081
Log:
        Backport from mainline:
        2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>

        PR c++/23797
        * parser.c (cp_parser_functional_cast): Cope when TYPE is not a
        TYPE_DECL.  Use dependent_type_p to check type.
        * pt.c (uses_template_parms_p): Use dependent_type_p for a
        TYPE_DECL.
        (type_dependent_expression_p): Assert we've not been given a
        TYPE_DECL.

        * g++.dg/parse/typename8.C: New test.
        * g++.dg/parse/typename9.C: Likewise.


Added:
    branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/typename8.C
    branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/typename9.C
Modified:
    branches/gcc-3_4-branch/gcc/cp/ChangeLog
    branches/gcc-3_4-branch/gcc/cp/parser.c
    branches/gcc-3_4-branch/gcc/cp/pt.c
    branches/gcc-3_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23797


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