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]

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


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]