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]

Ping: [C++ PATCH] [PR C++ 22154] [DR 382] qualified names should allow typename keyword in front of it (even in non-templates)


Ping 1.


---------- Forwarded message ----------
From: Andrew Pinski <Andrew_Pinski@playstation.sony.com>
Date: Tue, Jun 2, 2009 at 6:34 PM
Subject: [C++ PATCH] [PR C++ 22154] [DR 382] qualified names should
allow typename keyword in front of it (even in non-templates)
To: GCC Patches <gcc-patches@gcc.gnu.org>


Hi,
ÂI implemented this Defect report in the C++ front-end. ÂI originally
wrote this for the PS3 toolchain which is a 4.1.1 based GCC. ÂIt has
been tested on many different code and does not accept non qualified
names with the typename keyword.

OK? ÂBootstrapped and tested on i686-linux-gnu with no regressions.

Thanks,
Andrew Pinski

cp/ChangeLog:
* parser.c (cp_parser_elaborated_type_specifier): Accept typename in
front of qualified names.

testsuite/ChangeLog:
* g++.old-deja/g++.pt/typename10.C: Update for DR 382, typename in
front of qualified names are allowed.
* g++.dg/parse/crash10.C: Likewise.
* g++.dg/parse/error15.C: Likewise.
* g++.dg/parse/typename9.C: Likewise.
* g++.dg/parse/error8.C: Likewise.

Attachment: fixpr22154.diff.txt
Description: Text document


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