diff options
author | Jason Merrill <jason@redhat.com> | 2019-03-20 16:31:40 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-03-20 16:31:40 -0400 |
commit | 292a8bbb27fd13e87552ca7c98a9d4e82c21b385 (patch) | |
tree | 2150935ef639b1e97f5dcdda3907facd092ba69b /gcc/dwarf2out.c | |
parent | 3ad7fed1cc87d281881757477c5197d9d3a97232 (diff) | |
download | gcc-292a8bbb27fd13e87552ca7c98a9d4e82c21b385.zip gcc-292a8bbb27fd13e87552ca7c98a9d4e82c21b385.tar.gz gcc-292a8bbb27fd13e87552ca7c98a9d4e82c21b385.tar.bz2 |
PR c++/87480 - decltype of member access in default template arg
The issue here is that declval<T>().d is considered instantiation-dependent
within a template, as the access to 'd' might depend on the particular
specialization. But when we're deducing template arguments for a call, we
know that the call and the arguments are non-dependent, so we can do the
substitution as though we aren't in a template. Which strictly speaking we
aren't, since the default argument is considered a separate definition.
* pt.c (type_unification_real): Accept a dependent result in
template context.
From-SVN: r269826
Diffstat (limited to 'gcc/dwarf2out.c')
0 files changed, 0 insertions, 0 deletions