aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constraint.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-03-27 00:28:30 -0400
committerJason Merrill <jason@redhat.com>2022-03-28 09:35:58 -0400
commitc7361eb36fa50307c9f7cfca36c9f58ce24f8f54 (patch)
treecde1756d566a8100e6ec70d1aff135c827bd9957 /gcc/cp/constraint.cc
parent8bc5cdaafa2e729f9209684dc30aa0acb72d2580 (diff)
downloadgcc-c7361eb36fa50307c9f7cfca36c9f58ce24f8f54.zip
gcc-c7361eb36fa50307c9f7cfca36c9f58ce24f8f54.tar.gz
gcc-c7361eb36fa50307c9f7cfca36c9f58ce24f8f54.tar.bz2
c++: member alias declaration [PR103968]
Here, we were wrongly thinking that (const Options&)Widget<T>::c_options is not value-dependent because neither the type nor the (value of) c_options are dependent, but since we're binding it to a reference we also need to consider that it has a value-dependent address. PR c++/103968 gcc/cp/ChangeLog: * pt.cc (value_dependent_expression_p): Check has_value_dependent_address for conversion to reference. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/alias-decl-mem1.C: New test.
Diffstat (limited to 'gcc/cp/constraint.cc')
0 files changed, 0 insertions, 0 deletions