This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r130519 - in /trunk/gcc: cp/ChangeLog cp/parser...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Nov 2007 21:04:05 -0000
- Subject: r130519 - in /trunk/gcc: cp/ChangeLog cp/parser...
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