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
This commit is contained in:
Jason Merrill 2013-09-13 15:11:23 -04:00 committed by Jason Merrill
parent 4f03875418
commit 2fce28ed64
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;

View File

@ -0,0 +1,15 @@
// 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));
}
};