diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2007-03-23 02:58:46 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2007-03-23 02:58:46 +0000 |
commit | 5a023baa1f8496c1c9c15f14d63e981331d8ea3a (patch) | |
tree | 284f1f8b157dee2010417f98eb94317715e97b9a /gcc/cp/cxx-pretty-print.c | |
parent | ecee68026b5c9005dfb0c351fa1c5edcf44340fa (diff) | |
download | gcc-5a023baa1f8496c1c9c15f14d63e981331d8ea3a.zip gcc-5a023baa1f8496c1c9c15f14d63e981331d8ea3a.tar.gz gcc-5a023baa1f8496c1c9c15f14d63e981331d8ea3a.tar.bz2 |
error.c (dump_expr): Handle dependent names that designate types.
* error.c (dump_expr): Handle dependent names that designate types.
* cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.
From-SVN: r123148
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r-- | gcc/cp/cxx-pretty-print.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index e250bf7..ac75e1d 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -129,7 +129,9 @@ pp_cxx_template_id (cxx_pretty_printer *pp, tree t) pp_cxx_end_template_argument_list (pp); } -/* unqualified-id: +/* Prints the unqualified part of the id-expression T. + + unqualified-id: identifier operator-function-id conversion-function-id @@ -204,6 +206,10 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t) pp_cxx_unqualified_id (pp, TEMPLATE_PARM_DECL (t)); break; + case TYPENAME_TYPE: + pp_cxx_unqualified_id (pp, TYPE_NAME (t)); + break; + default: pp_unsupported_tree (pp, t); break; |