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:
parent
4f03875418
commit
2fce28ed64
@ -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
|
||||
|
@ -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;
|
||||
|
15
gcc/testsuite/g++.dg/template/inherit9.C
Normal file
15
gcc/testsuite/g++.dg/template/inherit9.C
Normal 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));
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user