diff options
author | Jason Merrill <jason@redhat.com> | 2009-09-02 11:48:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-09-02 11:48:44 -0400 |
commit | 301ea0943188c469a2c9b567dedb0f7f64d7d826 (patch) | |
tree | da3b1f3b6adf3d1fce8e8ed811d58a8e97b4dac3 | |
parent | f071aaca7e9372ecaff4835bea8c39d58d29a0e5 (diff) | |
download | gcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.zip gcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.tar.gz gcc-301ea0943188c469a2c9b567dedb0f7f64d7d826.tar.bz2 |
* ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
From-SVN: r151334
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/ptree.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2a88d63..d4745c3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2009-09-01 Jason Merrill <jason@redhat.com> + + * ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression. + 2009-09-01 Alexandre Oliva <aoliva@redhat.com> * cp-tree.h (TFF_NO_OMIT_DEFAULT_TEMPLATE_ARGUMENTS): New. diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 69279cd..a1fa71f 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -95,6 +95,10 @@ cxx_print_type (FILE *file, tree node, int indent) case UNION_TYPE: break; + case DECLTYPE_TYPE: + print_node (file, "expr", DECLTYPE_TYPE_EXPR (node), indent + 4); + return; + default: return; } |