aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>1999-12-22 08:52:49 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1999-12-22 08:52:49 +0000
commitf6a898ba9e5640269015a0f035adfdc10d18bd40 (patch)
treed586fa4a13c8b3e9c71b62e31611de981aa5ced9 /gcc/cp/error.c
parent0e455fc3f96799199ba3c801e786dd5d2164920c (diff)
downloadgcc-f6a898ba9e5640269015a0f035adfdc10d18bd40.zip
gcc-f6a898ba9e5640269015a0f035adfdc10d18bd40.tar.gz
gcc-f6a898ba9e5640269015a0f035adfdc10d18bd40.tar.bz2
* error.c (dump_decl): Support named return values.
From-SVN: r31067
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index e7633f5..46ac51b 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -892,6 +892,11 @@ dump_decl (t, flags)
dump_simple_decl (t, TREE_TYPE (t), flags);
break;
+ case RESULT_DECL:
+ OB_PUTS ("{return} ");
+ dump_simple_decl (t, TREE_TYPE (t), flags);
+ break;
+
case NAMESPACE_DECL:
dump_scope (CP_DECL_CONTEXT (t), flags);
if (DECL_NAME (t) == anonymous_namespace_name)