https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103968

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:c7361eb36fa50307c9f7cfca36c9f58ce24f8f54

commit r12-7852-gc7361eb36fa50307c9f7cfca36c9f58ce24f8f54
Author: Jason Merrill <ja...@redhat.com>
Date:   Sun Mar 27 00:28:30 2022 -0400

    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.

Reply via email to