This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Don't ICE on invalid __decltype (~type) (PR c++/34268, c++/34267; take 2)


Jakub Jelinek wrote:

> 2007-11-29  Jakub Jelinek  <jakub@redhat.com>
> 
> 	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.

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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