aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 05d5892..5108950 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -1933,14 +1933,18 @@ write_type (tree type)
write_char ('E');
break;
- case NULLPTR_TYPE:
- write_string ("Dn");
- break;
-
case TYPEOF_TYPE:
sorry ("mangling typeof, use decltype instead");
break;
+ case LANG_TYPE:
+ if (NULLPTR_TYPE_P (type))
+ {
+ write_string ("Dn");
+ break;
+ }
+ /* else fall through. */
+
default:
gcc_unreachable ();
}