On Thu, Dec 04, 2014 at 04:12:02PM +0100, Kai Tietz wrote: > Hi, > > this patch fixes an ICE happening on invalid code for < c++11. It is > reasoned by > accessing blindly identifier without checking that it is a declaration. > > ChangeLog > > 2014-12-04 Kai Tietz <kti...@redhat.com> > > PR c++/64127 > * parser.c (cp_parser_diagnose_invalid_type_name): Check > id for being a declaration before accessing identifier. > > Tested on x86_64-unknown-linux-gnu. > > Ok for apply?
Testcase? Marek