This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to Compile libstdc++ v3 by gcc 2.95.3?


Program Listing
===============
#include <stack>
class bar : public std::stack<int> {};
int main( int argc, char* argv[] ) { return 0; }

Summary
=======
This program can not be compiled by gcc 2.95.3 but it can by gcc 3.0.4.
I have no idea of what version of libstdc++ installed (probably 3), but
I guess the problem is that the compiler is too old to compiler the
library, right?

Build Log
=========
[ccbsd7]~> gcc test.cpp
In file included from /usr/include/g++/sequence_concepts.h:17,
                 from /usr/include/g++/stl_stack.h:34,
                 from /usr/include/g++/stack:35,
                 from test.cpp:1:
/usr/include/g++/container_concepts.h: In function `static void
_const_ReversibleContainer_concept_specification<_ReversibleContainer>::_const_ReversibleContainer_requirement_violation(_ReversibleContainer)':
/usr/include/g++/container_concepts.h:216: syntax error before `>'
/usr/include/g++/concept_checks.h: In function `static void
_TrivialIterator_concept_specification<int
**>::_TrivialIterator_requirement_violation(int **)':
/usr/include/g++/concept_checks.h:572: template instantiation depth
exceeds maximum of 17
/usr/include/g++/concept_checks.h:572:  (use -ftemplate-depth-NN to
increase the maximum)
/usr/include/g++/concept_checks.h:572:   instantiating
`__value_type_type_definition_requirement_violation<int **>'
/usr/include/g++/concept_checks.h:572:   instantiated from
`_TrivialIterator_concept_specification<int
**>::_TrivialIterator_requirement_violation(int **)'
/usr/include/g++/concept_checks.h:606:   instantiated from
`_InputIterator_concept_specification<int
**>::_InputIterator_requirement_violation(int **)'
/usr/include/g++/stl_algobase.h:214:   instantiated from `copy<int **,
int **>(int **, int **, int **)'
/usr/include/g++/stl_deque.h:1569:   instantiated from
`deque<int,allocator<int> >::_M_reallocate_map(unsigned int, bool)'
/usr/include/g++/stl_deque.h:895:   instantiated from
`deque<int,allocator<int> >::_M_reserve_map_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1522:   instantiated from
`deque<int,allocator<int> >::_M_new_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:868:   instantiated from
`deque<int,allocator<int> >::_M_reserve_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1205:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const
int &,const int *>, forward_iterator_tag)'
/usr/include/g++/stl_deque.h:761:   instantiated from
`deque<int,allocator<int>
>::_M_insert_dispatch<_Deque_iterator<int,const int &,const int *> >(_Deque_iterator<int,int &,int *>, _Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const int &,const int *>, __false_type)'
/usr/include/g++/stl_deque.h:748:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const
int &,const int *>)'
/usr/include/g++/stl_deque.h:584:   instantiated from
`deque<int,allocator<int> >::operator =(const deque<int,allocator<int> >
&)'
/usr/include/g++/concept_checks.h:370:   instantiated from
`_STL_ERROR::__assignment_operator_requirement_violation<deque<int,allocator<int>
> >(deque<int,alloc
ator<int> >)'
/usr/include/g++/concept_checks.h:530:   instantiated from
`_Assignable_concept_specification<deque<int,allocator<int> >
>::_Assignable_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:128:   instantiated from
`_Container_concept_specification<deque<int,allocator<int> >
>::_Container_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:161:   instantiated from
`_ForwardContainer_concept_specification<deque<int,allocator<int> >
>::_ForwardContainer_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/sequence_concepts.h:160:   instantiated from
`_Sequence_concept_specification<deque<int,allocator<int> >
>::_Sequence_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/sequence_concepts.h:193:   instantiated from
`_BackInsertionSequence_concept_specification<deque<int,allocator<int> >
>::_BackInsertionSequence_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/stl_stack.h:57:   instantiated from here
/usr/include/g++/concept_checks.h:572: invalid use of undefined type
`struct __value_type_type_definition_requirement_violation<int **>'
/usr/include/g++/concept_checks.h:500: forward declaration of `struct
__value_type_type_definition_requirement_violation<int **>'
/usr/include/g++/concept_checks.h:575: template instantiation depth
exceeds maximum of 17
/usr/include/g++/concept_checks.h:575:  (use -ftemplate-depth-NN to
increase the maximum)
/usr/include/g++/concept_checks.h:575:   instantiating
`_Assignable_concept_specification<int **>'
/usr/include/g++/concept_checks.h:575:   instantiated from
`_TrivialIterator_concept_specification<int
**>::_TrivialIterator_requirement_violation(int **)'
/usr/include/g++/concept_checks.h:606:   instantiated from
`_InputIterator_concept_specification<int
**>::_InputIterator_requirement_violation(int **)'
/usr/include/g++/stl_algobase.h:214:   instantiated from `copy<int **,
int **>(int **, int **, int **)'
/usr/include/g++/stl_deque.h:1569:   instantiated from
`deque<int,allocator<int> >::_M_reallocate_map(unsigned int, bool)'
/usr/include/g++/stl_deque.h:895:   instantiated from
`deque<int,allocator<int> >::_M_reserve_map_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1522:   instantiated from
`deque<int,allocator<int> >::_M_new_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:868:   instantiated from
`deque<int,allocator<int> >::_M_reserve_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1205:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const
int &,const int *>, forward_iterator_tag)'
/usr/include/g++/stl_deque.h:761:   instantiated from
`deque<int,allocator<int>
>::_M_insert_dispatch<_Deque_iterator<int,const int &,const int *> >(_Deque_iterator<int,int &,int *>, _Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const int &,const int *>, __false_type)'
/usr/include/g++/stl_deque.h:748:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const
int &,const int *>)'
/usr/include/g++/stl_deque.h:584:   instantiated from
`deque<int,allocator<int> >::operator =(const deque<int,allocator<int> >
&)'
/usr/include/g++/concept_checks.h:370:   instantiated from
`_STL_ERROR::__assignment_operator_requirement_violation<deque<int,allocator<int>
> >(deque<int,allocator<int> >)'
/usr/include/g++/concept_checks.h:530:   instantiated from
`_Assignable_concept_specification<deque<int,allocator<int> >
>::_Assignable_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:128:   instantiated from
`_Container_concept_specification<deque<int,allocator<int> >
>::_Container_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:161:   instantiated from
`_ForwardContainer_concept_specification<deque<int,allocator<int> >
>::_ForwardContainer_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/sequence_concepts.h:160:   instantiated from
`_Sequence_concept_specification<deque<int,allocator<int> >
>::_Sequence_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/sequence_concepts.h:193:   instantiated from
`_BackInsertionSequence_concept_specification<deque<int,allocator<int> >
>::_BackInsertionSequence_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/stl_stack.h:57:   instantiated from here
/usr/include/g++/concept_checks.h:575: template instantiation depth
exceeds maximum of 17
/usr/include/g++/concept_checks.h:575:  (use -ftemplate-depth-NN to
increase the maximum)
/usr/include/g++/concept_checks.h:575:   instantiating
`_Assignable_concept_specification<int **>'
/usr/include/g++/concept_checks.h:575:   instantiated from
`_TrivialIterator_concept_specification<int
**>::_TrivialIterator_requirement_violation(int **)'
/usr/include/g++/concept_checks.h:606:   instantiated from
`_InputIterator_concept_specification<int
**>::_InputIterator_requirement_violation(int **)'
/usr/include/g++/stl_algobase.h:214:   instantiated from `copy<int **,
int **>(int **, int **, int **)'
/usr/include/g++/stl_deque.h:1569:   instantiated from
`deque<int,allocator<int> >::_M_reallocate_map(unsigned int, bool)'
/usr/include/g++/stl_deque.h:895:   instantiated from
`deque<int,allocator<int> >::_M_reserve_map_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1522:   instantiated from
`deque<int,allocator<int> >::_M_new_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:868:   instantiated from
`deque<int,allocator<int> >::_M_reserve_elements_at_front(unsigned int)'
/usr/include/g++/stl_deque.h:1205:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,co
nst int &,const int *>, forward_iterator_tag)'
/usr/include/g++/stl_deque.h:761:   instantiated from
`deque<int,allocator<int>
>::_M_insert_dispatch<_Deque_iterator<int,const int &,const int *> >(_Deque_iterator<int,int &,int *>, _Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const int &,const int *>, __false_type)'
/usr/include/g++/stl_deque.h:748:   instantiated from
`deque<int,allocator<int> >::insert<_Deque_iterator<int,const int
&,const int *> >(_Deque_iterator<int,int &,int *>,
_Deque_iterator<int,const int &,const int *>, _Deque_iterator<int,const
int &,const int *>)'
/usr/include/g++/stl_deque.h:584:   instantiated from
`deque<int,allocator<int> >::operator =(const deque<int,allocator<int> >
&)'
/usr/include/g++/concept_checks.h:370:   instantiated from
`_STL_ERROR::__assignment_operator_requirement_violation<deque<int,allocator<int>
> >(deque<int,allocator<int> >)'
/usr/include/g++/concept_checks.h:530:   instantiated from
`_Assignable_concept_specification<deque<int,allocator<int> >
>::_Assignable_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:128:   instantiated from
`_Container_concept_specification<deque<int,allocator<int> >
>::_Container_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/container_concepts.h:161:   instantiated from
`_ForwardContainer_concept_specification<deque<int,allocator<int> >
>::_ForwardContainer_requirement_violation(deque<int,allocator<int> >)'
/usr/include/g++/sequence_concepts.h:160:   instantiated from
`_Sequence_concept

--
Chih-Wei Chiu <http://www.csie.nctu.edu.tw/~jwchiu>
Computer Graphics and Geometry Modeling Laboratory,
Computer Science and Information Engineering Department,
National Chiao-Tung University, Taiwan


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