PR c++/78761

* cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
	* testsuite/demangle-expected: Add test for decltype(auto).


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@243594 138bc75d-0d04-0410-961f-82ee72b054a4
This commit is contained in:
jakub 2016-12-13 06:20:44 +00:00
parent 41eb5a9a77
commit b73b600f9a
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-12-13 Jakub Jelinek <jakub@redhat.com>
PR c++/78761
* cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
* testsuite/demangle-expected: Add test for decltype(auto).
2016-12-12 Nathan Sidwell <nathan@acm.org>
PR c++/78252

View File

@ -2552,7 +2552,11 @@ cplus_demangle_type (struct d_info *di)
/* auto */
ret = d_make_name (di, "auto", 4);
break;
case 'c':
/* decltype(auto) */
ret = d_make_name (di, "decltype(auto)", 14);
break;
case 'f':
/* 32-bit decimal floating point */
ret = d_make_builtin_type (di, &cplus_demangle_builtin_types[26]);

View File

@ -4085,6 +4085,9 @@ decltype (new auto({parm#1})) f<int>(int)
_Z1fIiERDaRKT_S1_
auto& f<int>(int const&, int)
--format=gnu-v3
_Z1gIiEDcRKT_S0_
decltype(auto) g<int>(int const&, int)
--format=gnu-v3
_Z1gILi1EEvR1AIXT_EER1BIXscbT_EE
void g<1>(A<1>&, B<static_cast<bool>(1)>&)
--format=gnu-v3