]> gcc.gnu.org Git - gcc.git/commit
c++: member alias declaration [PR103968]
authorJason Merrill <jason@redhat.com>
Sun, 27 Mar 2022 04:28:30 +0000 (00:28 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 28 Mar 2022 19:11:53 +0000 (15:11 -0400)
commit97390a9914672f5ce73c169b3ae7fd4bba25c2fe
tree18f5817648da575ce9090b988d59f4ce08b89d94
parente952290874d6b99946dc02e125c0fb0e9b13a1e3
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.c (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.
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/alias-decl-mem1.C [new file with mode: 0644]
This page took 0.063261 seconds and 6 git commands to generate.