Commit 8aa25857 by Richard Guenther Committed by Richard Biener

implicit-typename1.C: Qualify types.

2006-12-09  Richard Guenther  <rguenther@suse.de>

	* g++.dg/warn/implicit-typename1.C: Qualify types.
	* g++.dg/parse/crash12.C: Likewise.
	* g++.dg/tree-ssa/pr22444.C: Likewise.

From-SVN: r119693
parent efe75b6f
2006-12-09 Richard Guenther <rguenther@suse.de>
* g++.dg/warn/implicit-typename1.C: Qualify types.
* g++.dg/parse/crash12.C: Likewise.
* g++.dg/tree-ssa/pr22444.C: Likewise.
2006-12-09 Tobias Burnus <burnus@net-b.de> 2006-12-09 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/array_2.f90: Added sqrt test. * gfortran.dg/array_2.f90: Added sqrt test.
...@@ -9,8 +9,8 @@ template <class _Tp> ...@@ -9,8 +9,8 @@ template <class _Tp>
class counted_ptr class counted_ptr
{ {
public: public:
counted_ptr(auto_ptr<_Tp>& __a); // { dg-error "candidate" } counted_ptr(::auto_ptr<_Tp>& __a); // { dg-error "candidate" }
auto_ptr<_Tp> auto_ptr(); ::auto_ptr<_Tp> auto_ptr();
}; };
template <class _Tp> template <class _Tp>
......
...@@ -103,10 +103,10 @@ namespace std ...@@ -103,10 +103,10 @@ namespace std
}; };
template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc = allocator<_Val> > struct _Rb_tree template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc = allocator<_Val> > struct _Rb_tree
{ {
typedef typename _Alloc::template rebind<_Rb_tree_node<_Val> >::other _Node_allocator; typedef typename _Alloc::template rebind<std::_Rb_tree_node<_Val> >::other _Node_allocator;
typedef _Rb_tree_node_base* _Base_ptr; typedef _Rb_tree_node_base* _Base_ptr;
typedef const _Rb_tree_node_base* _Const_Base_ptr; typedef const _Rb_tree_node_base* _Const_Base_ptr;
typedef _Rb_tree_node<_Val> _Rb_tree_node; typedef std::_Rb_tree_node<_Val> _Rb_tree_node;
typedef _Key key_type; typedef _Key key_type;
typedef _Val value_type; typedef _Val value_type;
typedef value_type* pointer; typedef value_type* pointer;
......
...@@ -13,5 +13,5 @@ template <typename T> struct C { ...@@ -13,5 +13,5 @@ template <typename T> struct C {
}; };
template <typename T> struct A : public C<T> { template <typename T> struct A : public C<T> {
typedef X<int> X; typedef ::X<int> X;
}; };
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