aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-04-22 18:49:01 +0000
committerJason Merrill <jason@redhat.com>2013-04-22 18:49:01 +0000
commit42e9e039cfbe7c8b1f13e0e4315842ab3e6284c0 (patch)
tree8a11dc6ab64d648474542ee2af8d8c257161eec3 /gcc/cp/mangle.c
parent9ddf67e5f395f8b972fec88b0cfff2cde2965aff (diff)
* mangle.c (write_type): Mangle decltype(auto).
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@198150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 83c3e628da0..8da62b5e969 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2019,7 +2019,10 @@ write_type (tree type)
case TEMPLATE_TYPE_PARM:
if (is_auto (type))
{
- write_identifier ("Da");
+ if (AUTO_IS_DECLTYPE (type))
+ write_identifier ("Dc");
+ else
+ write_identifier ("Da");
++is_builtin_type;
break;
}