]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/d-demangle.c
libiberty: Add support for D `typeof(*null)' types
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Aug 2021 17:00:33 +0000 (19:00 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Aug 2021 23:14:18 +0000 (01:14 +0200)
commit0e32a5aa8bc967bc183142a596d0a6460be27438
tree1e4a2a1d03104cc7fccdaffac7965169cfe8899e
parentc3c669ac811429033c0151f910b38fc009e21ca8
libiberty: Add support for D `typeof(*null)' types

The D language has a new bottom type `typeof(*null)'.  Null types were
also incorrectly being demangled as `none', this has been fixed to be
`typeof(null)'.

libiberty/ChangeLog:

* d-demangle.c (dlang_attributes): Handle typeof(*null).
(dlang_type): Likewise.  Demangle 'n' as typeof(null).
* testsuite/d-demangle-expected: Update tests.
libiberty/d-demangle.c
libiberty/testsuite/d-demangle-expected