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
This commit is contained in:
Richard Guenther 2006-12-09 17:40:13 +00:00 committed by Richard Biener
parent efe75b6f9f
commit 8aa25857e0
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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>
* gfortran.dg/array_2.f90: Added sqrt test.

View File

@ -9,8 +9,8 @@ template <class _Tp>
class counted_ptr
{
public:
counted_ptr(auto_ptr<_Tp>& __a); // { dg-error "candidate" }
auto_ptr<_Tp> auto_ptr();
counted_ptr(::auto_ptr<_Tp>& __a); // { dg-error "candidate" }
::auto_ptr<_Tp> auto_ptr();
};
template <class _Tp>

View File

@ -103,10 +103,10 @@ namespace std
};
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 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 _Val value_type;
typedef value_type* pointer;

View File

@ -13,5 +13,5 @@ template <typename T> struct C {
};
template <typename T> struct A : public C<T> {
typedef X<int> X;
typedef ::X<int> X;
};