This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs/g++-cvs-980522-18h15-MET bug: t`hastable' template's not seen as a template ...



// Hi,

// freshly built egcs/g++-cvs-980522-18h15-MET has a problem handling the 
// following case, (this not the case with egcs/g++-cvs-980424-18h00-MET)


// Regards, Max


//--------------bug.cc----8<-----------------------

#include <hash_map>

//--------------bug.cc----8<-----------------------

/*
$ g++ -c bug.cc
In file included from /usr/local/egcs-cvs-980522-18h15-MET/include/g++/hash_map:31,
                 from bug.cc:9:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:593: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:594: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:595: warning: ANSI C++ forbids declaration `ht1' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:595: warning: ANSI C++ forbids declaration `ht2' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:595: `operator ==(const int &, const int &)' must have an argument of class or enumerated type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `bool operator ==(const int &, const int &)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:596: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:596: `node' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:596: warning: ANSI C++ forbids typedef which does not specify a type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:614: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:615: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:615: warning: ANSI C++ forbids declaration `ht1' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:615: warning: ANSI C++ forbids declaration `ht2' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:623: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:623: `iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:623: warning: ANSI C++ forbids declaration `' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:624: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:624: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `struct pair<int,bool> insert_unique_noresize(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:626: warning: ANSI C++ forbids declaration `size_type' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:626: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:631: type/value mismatch at argument 1 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:631:   expected a type, got `iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:631: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:637: type/value mismatch at argument 1 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:637:   expected a type, got `iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:637: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:641: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:642: `iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:642: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:642: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `int insert_equal_noresize(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:644: warning: ANSI C++ forbids declaration `size_type' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:644: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:653: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:660: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:664: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:665: `reference' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:665: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:665: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `int find_or_insert(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:669: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:684: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:684: `iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:684: warning: ANSI C++ forbids declaration `' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:685: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:685: `iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:685: warning: ANSI C++ forbids declaration `' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:686: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:686: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `struct pair<int,int> equal_range(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:688: type/value mismatch at argument 1 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:688:   expected a type, got `iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:688: type/value mismatch at argument 2 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:688:   expected a type, got `iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:688: warning: ANSI C++ forbids typedef which does not specify a type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:689: warning: ANSI C++ forbids declaration `size_type' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:689: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:695: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:695: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:696: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:698: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:699: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:700: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:707: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:707: `const_iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:707: warning: ANSI C++ forbids declaration `' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:708: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:708: `const_iterator' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:708: warning: ANSI C++ forbids declaration `' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:709: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:709: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:710: non-member function `equal_range(...)' cannot have `const' method qualifier
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:710: redefinition of `template <class V, class K, class HF, class Ex, class Eq, class A> struct pair<int,int> equal_range(...)'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:687: `template <class V, class K, class HF, class Ex, class Eq, class A> struct pair<int,int> equal_range(...)' previously declared here
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `struct pair<int,int> equal_range(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:711: type/value mismatch at argument 1 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:711:   expected a type, got `const_iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:711: type/value mismatch at argument 2 in template parameter list for `template <class T1, class T2> pair<T1,T2>'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:711:   expected a type, got `const_iterator'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:711: warning: ANSI C++ forbids typedef which does not specify a type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:712: warning: ANSI C++ forbids declaration `size_type' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:712: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:714: warning: ANSI C++ forbids declaration `node' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:714: parse error before `*'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:716: warning: ANSI C++ forbids declaration `node' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:716: parse error before `*'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:718: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:719: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:720: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:722: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:723: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:724: invalid use of `this' in non-member function
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:731: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:732: `size_type' is not a class or namespace
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:732: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:732: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `int erase(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:734: warning: ANSI C++ forbids declaration `size_type' with no type
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:734: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:736: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: At top level:
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:765: non-template type `hashtable' used as a template
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:765: parse error before `&'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:766: new declaration `template <class V, class K, class HF, class Ex, class Eq, class A> void erase(...)'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:733: ambiguates old declaration `template <class V, class K, class HF, class Ex, class Eq, class A> int erase(...)'
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h: In function `void erase(...)':
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:767: parse error before `='
/usr/local/egcs-cvs-980522-18h15-MET/include/g++/stl_hashtable.h:791: confused by earlier errors, bailing out
*/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]