Commit 2fce28ed by Jason Merrill Committed by Jason Merrill

re PR c++/58273 (Segmentation fault with C++11)

	PR c++/58273
	* pt.c (any_type_dependent_elements_p): Actually check for
	type-dependence, not value-dependence.

From-SVN: r202576
parent 4f038754
2013-09-13 Jason Merrill <jason@redhat.com>
PR c++/58273
* pt.c (any_type_dependent_elements_p): Actually check for
type-dependence, not value-dependence.
2013-09-13 Jacek Caban <jacek@codeweavers.com>
* decl.c: Use new cxx_implicit_extern_c hook
......
......@@ -20456,7 +20456,7 @@ bool
any_type_dependent_elements_p (const_tree list)
{
for (; list; list = TREE_CHAIN (list))
if (value_dependent_expression_p (TREE_VALUE (list)))
if (type_dependent_expression_p (TREE_VALUE (list)))
return true;
return false;
......
// PR c++/58273
class A {};
class B
{
int goo(A);
};
template<typename E>
class D : public B
{
void foo(A t)
{
int const i(B::goo(t));
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment