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++/19253] [3.4/4.0/4.1 regression] bad error message / ICE for invalid template parameter



------- Comment #13 from mmitchel at gcc dot gnu dot org  2005-11-02 21:35 -------
Subject: Bug 19253

Author: mmitchel
Date: Wed Nov  2 21:35:46 2005
New Revision: 106399

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106399
Log:
        PR c++/19253
        * parser.c (cp_parser_postfix_expression): Use
        cp_parser_elaborated_type_specifier to handle typename-types in
        functional casts.
        (cp_parser_enclosed_argument_list): Skip ahead to the end of the
        template argument list if the closing ">" is not found.
        PR c++/19253
        * g++.dg/parse/typename8.C: Compile with -w -fpermissive.
        * g++.dg/parse/typename9.C: New test.
        * g++/dg/parse/typename10.C: Likewise.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename10.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename9.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/parser.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/typename8.C


-- 


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


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