PR c++/87513 - 'sorry' mangling PMF template-id.
authorJason Merrill <jason@redhat.com>
Wed, 20 Feb 2019 18:59:18 +0000 (13:59 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 20 Feb 2019 18:59:18 +0000 (13:59 -0500)
commit60067b876326baff092554e5fb52e963a402e91b
tree2e39ac9ca78c434369f524c4904f7ba923b3ceed
parente3fe9cfb2fe9393791c1a586fd537ffd9cbe9824
PR c++/87513 - 'sorry' mangling PMF template-id.

Here build_offset_ref calls build_qualified_name to make a SCOPE_REF because
the dependent template arguments make type_dependent_expression_p (member)
true.  We could probably work hard to prevent this, but it doesn't seem
necessary, and it's easy to fix write_expression to handle the result.

* mangle.c (write_expression): Handle SCOPE_REF to BASELINK.

From-SVN: r269048
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/g++.dg/cpp0x/decltype-tid1.C [new file with mode: 0644]