This is the mail archive of the gcc@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-1.1.1 on Solaris2.6 bug?




  The first package that I tried to compile on Solaris2.6 w egcs-1.1.1
  gives errors. It complains about the overloaded function

template <class Sequence>
void  deleteAllPointersIn(Sequence& s)
{
   for (Sequence::iterator it=s.begin();it!=s.end();it++)
   delete *it; 
}

   and the error message ---  parse error before `='

   SunProCC4.2 has no problem with this somehow.
   Comments anyone? Please cc:imarkov@ucla.edu. Thanks.

							Igor
   
--------------------------------------------------------------------------------
g++ --version
egcs-2.91.60

g++ -g -shared -fPIC -c verbosity.cx
abktempl.h: In function `void deleteAllPointersIn(Sequence &)':
In file included from abkcommon.h:57,
                 from verbosity.cxx:26:
abktempl.h:55: parse error before `='
abkio.h: In function `unsigned int printRange(class ostream &, Iter, Iter)':
In file included from abkcommon.h:63,
                 from verbosity.cxx:26:
abkio.h:124: warning: name lookup of `count' changed
abkio.h:124: sorry, not implemented: `overload' not supported by dump_decl
:124: warning:   matches this `' under current ANSI rules
abkio.h:113: warning:   matches this `count' under old rules
pathDelims.h: At top level:
In file included from abkcommon.h:64,
                 from verbosity.cxx:26:
pathDelims.h:34: warning: ANSI C++ forbids declaration `pathDelimWindows' with
no type
pathDelims.h:35: warning: ANSI C++ forbids declaration `pathDelimUnix' with no
type
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:
In instantiation of `iterator_traits<int>':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:  
instantiated from `vector<unsigned int,__default_alloc_template<false,0>
>::vector<int>(int, int)'
verbosity.cxx:107:   instantiated from here
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:
no type named `iterator_category' in `int'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:
no type named `value_type' in `int'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:
no type named `difference_type' in `int'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:
no type named `pointer' in `int'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:
no type named `reference' in `int'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_iterator.h:
In function `{error} iterator_category<int>(const int &)':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_vector.h:113:  
instantiated from `vector<unsigned int,__default_alloc_template<false,0>
>::vector<int>(int, int)'
verbosity.cxx:107:   instantiated from here
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_iterator.h:126:
return-type `{error}' is an incomplete type
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.60/include/g++/stl_iterator.h:126:
confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `verbosity.o'

-- 
								Igor
--------------------------------------------------------------------
What should you do if you see an endangered animal eating an 
endangered plant?


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