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++/34267] [4.3 regression] ICE applying __decltype to name of template class



------- Comment #1 from jakub at gcc dot gnu dot org  2007-11-29 21:04 -------
Subject: Bug 34267

Author: jakub
Date: Thu Nov 29 21:04:04 2007
New Revision: 130519

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130519
Log:
        PR c++/34267
        PR c++/34268
        * parser.c (cp_parser_decltype): Don't call finish_id_expression
        on ~type.
        * semantics.c (finish_decltype_type): Issue error on types, TYPE_DECLs
        and ~type early.

        * g++.dg/cpp0x/decltype7.C: New test.
        * g++.dg/cpp0x/decltype8.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/decltype7.C
    trunk/gcc/testsuite/g++.dg/cpp0x/decltype8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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