Skip to content
Snippets Groups Projects
Commit c7361eb3 authored by Jason Merrill's avatar Jason Merrill
Browse files

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.
parent 8bc5cdaa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment