[haiku-development] Re: Errors when compiling libstdc++ stuff.

On Tue, 28 Oct 2008 12:32:50 -0200, Bruno Albuquerque said:

> >> At least for the first 4 errors (lines 257, 294, 427 and 453), the
> >> problem seems to be the "protected" scope keyword in classes (I 
> > > didn't
> >> check the other errors yet).
> > 
> > Please pre-process the file only and check what the problem is.
> 
> I ran the preprocessor in both the isolated header file 
> /boot/develop/headers/cpp/streambuf and the file including it and I 
> could not find anything wrong with the output. But I may be missing 
> something subtle. Want me to mail you the preprocessor output?

Ok. I managed to come up with a very simple test case:

#include <netdb.h>
#include <list>

int main(void) {
}

if you put the code above in a file called, say, test.cpp, you will get 
the errors in the attached fine when trying to compile it ("gcc test.
cpp"). In other words, if you include <list> after oncluding <netdb.h>, 
something breaks. Again, it only happens inside Haiku. Cross-compiling 
from Linux works.

Also worth mentioning is that in the opriginal case, there is a 
"#include <String.h>" amd it seems that <String.h> is completelly 
unaffected by <netdb.h>. Even in this case it will be <list> that 
breaks.

Hope this helps.

-Bruno

In file included from /boot/develop/headers/cpp/iostream.h:31,
                 from /boot/develop/headers/cpp/stl_algobase.h:53,
                 from /boot/develop/headers/cpp/list:30,
                 from /boot/home/test.cpp:2:
/boot/develop/headers/cpp/streambuf.h:257: parse error before `inline'
/boot/develop/headers/cpp/streambuf.h:294: parse error before `static'
/boot/develop/headers/cpp/streambuf.h:427: parse error before `('
/boot/develop/headers/cpp/streambuf.h:453: parse error before `('
/boot/develop/headers/cpp/streambuf.h:454: semicolon missing after declaration 
of `filebuf'
/boot/develop/headers/cpp/streambuf.h:454: extraneous `char' ignored
/boot/develop/headers/cpp/streambuf.h: In function `class filebuf * cur_ptr()':
/boot/develop/headers/cpp/streambuf.h:454: implicit declaration of function 
`int is_reading(...)'
/boot/develop/headers/cpp/streambuf.h:454: implicit declaration of function 
`int gptr(...)'
/boot/develop/headers/cpp/streambuf.h:454: implicit declaration of function 
`int pptr(...)'
/boot/develop/headers/cpp/streambuf.h:454: return to `filebuf *' from `int' 
lacks a cast
/boot/develop/headers/cpp/streambuf.h: In function `char * file_ptr()':
/boot/develop/headers/cpp/streambuf.h:456: implicit declaration of function 
`int eGptr(...)'
/boot/develop/headers/cpp/streambuf.h:456: return to `char *' from `int' lacks 
a cast
/boot/develop/headers/cpp/streambuf.h: At top level:
/boot/develop/headers/cpp/streambuf.h:458: virtual outside class declaration
/boot/develop/headers/cpp/streambuf.h:459: virtual outside class declaration
/boot/develop/headers/cpp/streambuf.h:460: virtual outside class declaration
/boot/develop/headers/cpp/streambuf.h:461: virtual outside class declaration
/boot/develop/headers/cpp/streambuf.h:462: virtual outside class declaration
/boot/develop/headers/cpp/streambuf.h:479: prototype for `ios::ios(streambuf *, 
ostream *)' does not match any in class `ios'
/boot/develop/headers/cpp/streambuf.h:128: candidate is: ios::ios(const ios &)
/boot/develop/headers/cpp/streambuf.h:489: parse error before `}'
/boot/develop/headers/cpp/iostream.h: In method `ostream::ostream()':
In file included from /boot/develop/headers/cpp/stl_algobase.h:53,
                 from /boot/develop/headers/cpp/list:30,
                 from /boot/home/test.cpp:2:
/boot/develop/headers/cpp/iostream.h:49: no matching function for call to 
`ios::ios ()'
/boot/develop/headers/cpp/streambuf.h:128: candidates are: ios::ios(const ios &)
/boot/develop/headers/cpp/streambuf.h:479:                 ios::ios(streambuf 
*, ostream *)
/boot/develop/headers/cpp/iostream.h: At top level:
/boot/develop/headers/cpp/iostream.h:126: parse error before `;'
/boot/develop/headers/cpp/iostream.h: In method `istream::istream()':
/boot/develop/headers/cpp/iostream.h:130: class `istream' does not have any 
field named `_gcount'
/boot/develop/headers/cpp/iostream.h:130: no matching function for call to 
`ios::ios ()'
/boot/develop/headers/cpp/streambuf.h:128: candidates are: ios::ios(const ios &)
/boot/develop/headers/cpp/streambuf.h:479:                 ios::ios(streambuf 
*, ostream *)
/boot/develop/headers/cpp/iostream.h: In method `size_t istream::gcount()':
/boot/develop/headers/cpp/iostream.h:196: `_gcount' undeclared (first use this 
function)
/boot/develop/headers/cpp/iostream.h:196: (Each undeclared identifier is 
reported only once
/boot/develop/headers/cpp/iostream.h:196: for each function it appears in.)
/boot/develop/headers/cpp/iostream.h: In method `iostream::iostream()':
/boot/develop/headers/cpp/iostream.h:246: no matching function for call to 
`ios::ios ()'
/boot/develop/headers/cpp/streambuf.h:128: candidates are: ios::ios(const ios &)
/boot/develop/headers/cpp/streambuf.h:479:                 ios::ios(streambuf 
*, ostream *)
/boot/develop/headers/cpp/stl_iterator.h: At top level:
In file included from /boot/develop/headers/cpp/stl_algobase.h:56,
                 from /boot/develop/headers/cpp/list:30,
                 from /boot/home/test.cpp:2:
/boot/develop/headers/cpp/stl_iterator.h:349: parse error before `*'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`back_insert_iterator<_Container>::back_insert_iterator(_Container &)':
/boot/develop/headers/cpp/stl_iterator.h:358: class 
`back_insert_iterator<_Container>' does not have any field named `container'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:388: parse error before `*'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`front_insert_iterator<_Container>::front_insert_iterator(_Container &)':
/boot/develop/headers/cpp/stl_iterator.h:397: class 
`front_insert_iterator<_Container>' does not have any field named `container'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:427: parse error before `*'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`insert_iterator<_Container>::insert_iterator(_Container &, typename 
_Container::iterator)':
/boot/develop/headers/cpp/stl_iterator.h:438: class 
`insert_iterator<_Container>' does not have any field named `container'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:480: parse error before `;'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`reverse_bidirectional_iterator<_BidirectionalIterator,_Tp,_Reference,_Distance>::reverse_bidirectional_iterator(_BidirectionalIterator)':
/boot/develop/headers/cpp/stl_iterator.h:490: class 
`reverse_bidirectional_iterator<_BidirectionalIterator,_Tp,_Reference,_Distance>'
 does not have any field named `current'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:573: parse error before `;'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`reverse_iterator<_Iterator>::reverse_iterator(_Iterator)':
/boot/develop/headers/cpp/stl_iterator.h:591: class 
`reverse_iterator<_Iterator>' does not have any field named `current'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`reverse_iterator<_Iterator>::reverse_iterator(const 
reverse_iterator<_Iterator> &)':
/boot/develop/headers/cpp/stl_iterator.h:593: class 
`reverse_iterator<_Iterator>' does not have any field named `current'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`reverse_iterator<_Iterator>::reverse_iterator(const reverse_iterator<_Iter> 
&)':
/boot/develop/headers/cpp/stl_iterator.h:597: class 
`reverse_iterator<_Iterator>' does not have any field named `current'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:815: parse error before `*'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`istream_iterator<_Tp,_Dist>::istream_iterator()':
/boot/develop/headers/cpp/stl_iterator.h:830: class 
`istream_iterator<_Tp,_Dist>' does not have any field named `_M_stream'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`istream_iterator<_Tp,_Dist>::istream_iterator(istream &)':
/boot/develop/headers/cpp/stl_iterator.h:831: class 
`istream_iterator<_Tp,_Dist>' does not have any field named `_M_stream'
/boot/develop/headers/cpp/stl_iterator.h: At top level:
/boot/develop/headers/cpp/stl_iterator.h:877: parse error before `*'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`ostream_iterator<_Tp>::ostream_iterator(ostream &)':
/boot/develop/headers/cpp/stl_iterator.h:886: class `ostream_iterator<_Tp>' 
does not have any field named `_M_stream'
/boot/develop/headers/cpp/stl_iterator.h: In method 
`ostream_iterator<_Tp>::ostream_iterator(ostream &, const char *)':
/boot/develop/headers/cpp/stl_iterator.h:888: class `ostream_iterator<_Tp>' 
does not have any field named `_M_stream'
/boot/develop/headers/cpp/stl_list.h: At top level:
In file included from /boot/develop/headers/cpp/list:34,
                 from /boot/home/test.cpp:2:
/boot/develop/headers/cpp/stl_list.h:143: parse error before `*'
/boot/develop/headers/cpp/stl_list.h:145: semicolon missing after declaration 
of `_List_alloc_base<_Tp,_Allocator,_IsStatic>'
/boot/develop/headers/cpp/stl_list.h: In method 
`_List_alloc_base<_Tp,_Allocator,_IsStatic>::_List_alloc_base(typename 
_Alloc_traits<_Tp,_Allocator>::allocator_type &)':
/boot/develop/headers/cpp/stl_list.h:140: class 
`_List_alloc_base<_Tp,_Allocator,_IsStatic>' does not have any field named 
`_Node_allocator'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:146: two or more data types in declaration 
of `_M_put_node'
/boot/develop/headers/cpp/stl_list.h:146: semicolon missing after declaration 
of `class _List_alloc_base<_Tp,_Allocator,_IsStatic>'
/boot/develop/headers/cpp/stl_list.h:148: parse error before `:'
/boot/develop/headers/cpp/stl_list.h:151: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:151: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h:152: parse error before `}'
/boot/develop/headers/cpp/stl_list.h:160: invalid member template declaration 
`_List_alloc_base::allocator_type'
/boot/develop/headers/cpp/stl_list.h:161: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:163: parse error before `&'
/boot/develop/headers/cpp/stl_list.h:163: declaration of template `template 
<class _Tp, class _Allocator> class _List_alloc_base _List_alloc_base(...)'
/boot/develop/headers/cpp/stl_list.h:134: conflicts with previous declaration 
`template <class _Tp, class _Allocator, bool _IsStatic> class 
_List_alloc_base<_Tp,_Allocator,_IsStatic>'
/boot/develop/headers/cpp/stl_list.h:134: previous non-function declaration 
`template <class _Tp, class _Allocator, bool _IsStatic> class 
_List_alloc_base<_Tp,_Allocator,_IsStatic>'
/boot/develop/headers/cpp/stl_list.h:163: conflicts with function declaration 
`template <class _Tp, class _Allocator> class _List_alloc_base 
_List_alloc_base(...)'
/boot/develop/headers/cpp/stl_list.h:165: parse error before `:'
/boot/develop/headers/cpp/stl_list.h:168: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:168: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h: In function `int * _M_get_node()':
/boot/develop/headers/cpp/stl_list.h:168: `_Alloc_type' undeclared (first use 
this function)
/boot/develop/headers/cpp/stl_list.h:168: parse error before `::'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:169: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:169: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h: In function `void _M_put_node(int *)':
/boot/develop/headers/cpp/stl_list.h:169: parse error before `::'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:183: non-template type `_List_alloc_base' 
used as a template
/boot/develop/headers/cpp/stl_list.h:184: no type named `allocator_type' in 
`int'
/boot/develop/headers/cpp/stl_list.h:250: parse error before `typedef'
/boot/develop/headers/cpp/stl_list.h:283: parse error before `using'
/boot/develop/headers/cpp/stl_list.h:289: parse error before `*'
/boot/develop/headers/cpp/stl_list.h:295: semicolon missing after declaration 
of `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:295: parse error before `...'
/boot/develop/headers/cpp/stl_list.h:299: syntax error before `*'
/boot/develop/headers/cpp/stl_list.h:312: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:313: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:315: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:316: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:318: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:320: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:323: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:325: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:328: non-member function `empty()' cannot 
have `const' method qualifier
/boot/develop/headers/cpp/stl_list.h: In function `bool empty()':
/boot/develop/headers/cpp/stl_list.h:328: request for member `_M_next' in 
`*_M_node', which is of non-aggregate type `int'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:329: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:331: implicit declaration of function `int 
begin(...)'
/boot/develop/headers/cpp/stl_list.h:331: implicit declaration of function `int 
end(...)'
/boot/develop/headers/cpp/stl_list.h:331: `__result' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:331: `int distance' redeclared as 
different kind of symbol
/boot/develop/headers/cpp/stl_iterator.h:305: previous declaration of `typename 
iterator_traits<_Iterator>::difference_type distance(_InputIterator, 
_InputIterator)'
/boot/develop/headers/cpp/stl_list.h:331: initializer list being treated as 
compound expression
/boot/develop/headers/cpp/stl_list.h:332: parse error before `return'
/boot/develop/headers/cpp/stl_list.h:334: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:336: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:337: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:338: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:339: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:341: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:341: `_Alloc' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:341: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h:341: template argument 2 is invalid
/boot/develop/headers/cpp/stl_list.h: In function `void swap(int &)':
/boot/develop/headers/cpp/stl_list.h:341: request for member `_M_node' in 
`__x', which is of non-aggregate type `int'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:343: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:345: syntax error before `->'
/boot/develop/headers/cpp/stl_list.h:346: syntax error before `->'
/boot/develop/headers/cpp/stl_list.h:347: parse error before `*'
/boot/develop/headers/cpp/stl_list.h:348: syntax error before `.'
/boot/develop/headers/cpp/stl_list.h:351: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:356: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: In function `void 
_M_insert_dispatch(...)':
/boot/develop/headers/cpp/stl_list.h:358: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:362: parse error before `,'
/boot/develop/headers/cpp/stl_list.h:367: parse error before `,'
/boot/develop/headers/cpp/stl_list.h:377: `iterator' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:377: parse error before `,'
/boot/develop/headers/cpp/stl_list.h:379: parse error before `&'
/boot/develop/headers/cpp/stl_list.h: In function `void push_front(...)':
/boot/develop/headers/cpp/stl_list.h:379: `__x' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:381: parse error before `&'
/boot/develop/headers/cpp/stl_list.h:384: syntax error before `('
/boot/develop/headers/cpp/stl_list.h:386: syntax error before `*'
/boot/develop/headers/cpp/stl_list.h:387: syntax error before `->'
/boot/develop/headers/cpp/stl_list.h:388: syntax error before `->'
/boot/develop/headers/cpp/stl_list.h:389: `__position' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:389: `int destroy' redeclared as different 
kind of symbol
/boot/develop/headers/cpp/stl_construct.h:82: previous declaration of `void 
destroy(__wchar_t *, __wchar_t *)'
/boot/develop/headers/cpp/stl_list.h:390: `__position' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:390: `int _M_put_node' redeclared as 
different kind of symbol
/boot/develop/headers/cpp/stl_list.h:169: previous declaration of `void 
_M_put_node(int *)'
/boot/develop/headers/cpp/stl_list.h:391: parse error before `return'
/boot/develop/headers/cpp/stl_list.h:393: syntax error before `('
/boot/develop/headers/cpp/stl_list.h: In function `void clear()':
/boot/develop/headers/cpp/stl_list.h:394: `_Base' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:394: parse error before `::'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:396: `size_type' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:396: parse error before `,'
/boot/develop/headers/cpp/stl_list.h:397: `size_type' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:397: parse error before `)'
/boot/develop/headers/cpp/stl_list.h: In function `void resize(...)':
/boot/develop/headers/cpp/stl_list.h:397: `__new_size' undeclared (first use 
this function)
/boot/develop/headers/cpp/stl_list.h:397: implicit declaration of function `int 
_Tp(...)'
/boot/develop/headers/cpp/stl_list.h: In function `void pop_front()':
/boot/develop/headers/cpp/stl_list.h:399: implicit declaration of function `int 
erase(...)'
/boot/develop/headers/cpp/stl_list.h: In function `void pop_back()':
/boot/develop/headers/cpp/stl_list.h:401: `iterator' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:401: parse error before `='
/boot/develop/headers/cpp/stl_list.h:402: `__tmp' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:404: `size_type' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:404: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: In function `int list(...)':
/boot/develop/headers/cpp/stl_list.h:247: previous non-function declaration 
`template <class _Tp, class _Alloc = class allocator<_Tp1> > class 
list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:406: conflicts with function declaration 
`int list(...)'
/boot/develop/headers/cpp/stl_list.h:406: base initializers not allowed for 
non-member functions
/boot/develop/headers/cpp/stl_list.h:406: `__a' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:407: `__n' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:407: `__value' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:408: parse error before `)'
/boot/develop/headers/cpp/stl_list.h:409: only constructors can be declared 
`explicit'
/boot/develop/headers/cpp/stl_list.h: In function `int list(...)':
/boot/develop/headers/cpp/stl_list.h:409: redefinition of `int list(...)'
/boot/develop/headers/cpp/stl_list.h:406: `int list(...)' previously defined 
here
/boot/develop/headers/cpp/stl_list.h: In function `int list(...)':
/boot/develop/headers/cpp/stl_list.h:409: base initializers not allowed for 
non-member functions
/boot/develop/headers/cpp/stl_list.h:409: implicit declaration of function `int 
allocator_type(...)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:418: parse error before `&'
/boot/develop/headers/cpp/stl_list.h:419: declaration of template `template 
<class _InputIterator> int list(...)'
/boot/develop/headers/cpp/stl_list.h:247: conflicts with previous declaration 
`template <class _Tp, class _Alloc = class allocator<_Tp1> > class 
list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:247: previous non-function declaration 
`template <class _Tp, class _Alloc = class allocator<_Tp1> > class 
list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:419: conflicts with function declaration 
`template <class _InputIterator> int list(...)'
/boot/develop/headers/cpp/stl_list.h: In function `int list(...)':
/boot/develop/headers/cpp/stl_list.h:419: base initializers not allowed for 
non-member functions
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:434: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:434: `_Alloc' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:434: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h:434: template argument 2 is invalid
/boot/develop/headers/cpp/stl_list.h: In function `int list(const int &)':
/boot/develop/headers/cpp/stl_list.h:247: previous non-function declaration 
`template <class _Tp, class _Alloc = class allocator<_Tp1> > class 
list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:434: conflicts with function declaration 
`int list(const int &)'
/boot/develop/headers/cpp/stl_list.h:434: base initializers not allowed for 
non-member functions
/boot/develop/headers/cpp/stl_list.h:434: request for member `get_allocator' in 
`__x', which is of non-aggregate type `int'
/boot/develop/headers/cpp/stl_list.h:435: request for member `begin' in `__x', 
which is of non-aggregate type `int'
/boot/develop/headers/cpp/stl_list.h:435: request for member `end' in `__x', 
which is of non-aggregate type `int'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:437: destructors must be member functions
/boot/develop/headers/cpp/stl_list.h: In function `void list()':
/boot/develop/headers/cpp/stl_list.h:247: previous non-function declaration 
`template <class _Tp, class _Alloc = class allocator<_Tp1> > class 
list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:437: conflicts with function declaration 
`void list()'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:439: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:439: `_Alloc' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:439: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h:439: template argument 2 is invalid
/boot/develop/headers/cpp/stl_list.h:439: `_Tp' was not declared in this scope
/boot/develop/headers/cpp/stl_list.h:439: `_Alloc' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:439: template argument 1 is invalid
/boot/develop/headers/cpp/stl_list.h:439: template argument 2 is invalid
/boot/develop/headers/cpp/stl_list.h:439: `operator =(const int &)' must be a 
nonstatic member function
/boot/develop/headers/cpp/stl_list.h:441: parse error before `public'
/boot/develop/headers/cpp/stl_list.h: In function `void 
_M_assign_dispatch(_Integer, _Integer, __true_type)':
/boot/develop/headers/cpp/stl_list.h:459: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:467: parse error before `:'
/boot/develop/headers/cpp/stl_list.h:472: parse error before `*'
/boot/develop/headers/cpp/stl_list.h:473: parse error before `*'
/boot/develop/headers/cpp/stl_list.h:476: syntax error before `*'
/boot/develop/headers/cpp/stl_list.h:477: syntax error before `.'
/boot/develop/headers/cpp/stl_list.h:478: syntax error before `.'
/boot/develop/headers/cpp/stl_list.h:479: syntax error before `.'
/boot/develop/headers/cpp/stl_list.h:488: `iterator' was not declared in this 
scope
/boot/develop/headers/cpp/stl_list.h:488: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: In function `void splice(...)':
/boot/develop/headers/cpp/stl_list.h:489: `iterator' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:489: parse error before `='
/boot/develop/headers/cpp/stl_list.h:490: `__j' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:491: `__position' undeclared (first use 
this function)
/boot/develop/headers/cpp/stl_list.h:491: `__i' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:492: implicit declaration of function `int 
transfer(...)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:494: parse error before `,'
/boot/develop/headers/cpp/stl_list.h: In function `void splice(...)':
/boot/develop/headers/cpp/stl_list.h:494: redefinition of `void splice(...)'
/boot/develop/headers/cpp/stl_list.h:488: `void splice(...)' previously defined 
here
/boot/develop/headers/cpp/stl_list.h: In function `void splice(...)':
/boot/develop/headers/cpp/stl_list.h:495: `__first' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h:495: `__last' undeclared (first use this 
function)
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:498: parse error before `&'
/boot/develop/headers/cpp/stl_list.h:500: use of class template `template 
<class _Tp, class _Alloc = class allocator<_Tp1> > list<_Tp,_Alloc>' as 
expression
/boot/develop/headers/cpp/stl_list.h:500: variable or field `merge' declared 
void
/boot/develop/headers/cpp/stl_list.h:507: use of class template `template 
<class _Tp, class _Alloc = class allocator<_Tp1> > list<_Tp,_Alloc>' as 
expression
/boot/develop/headers/cpp/stl_list.h:507: parse error before `,'
/boot/develop/headers/cpp/stl_list.h:507: `template <class _StrictWeakOrdering> 
void merge(...)' redeclared as different kind of symbol
/boot/develop/headers/cpp/stl_list.h:500: previous declaration of `int merge'
/boot/develop/headers/cpp/stl_list.h:500: previous non-function declaration 
`int merge'
/boot/develop/headers/cpp/stl_list.h:507: conflicts with function declaration 
`template <class _StrictWeakOrdering> void merge(...)'
/boot/develop/headers/cpp/stl_list.h:512: parse error before `&'
/boot/develop/headers/cpp/stl_list.h:512: friend declaration not in class 
definition
/boot/develop/headers/cpp/stl_list.h:512: `operator ==(...)' must have an 
argument of class or enumerated type
/boot/develop/headers/cpp/stl_list.h:512: `operator ==(...)' must take exactly 
two arguments
/boot/develop/headers/cpp/stl_list.h:512: template-id `operator ==<>' for 
`operator ==<>(...)' does not match any template declaration
/boot/develop/headers/cpp/stl_list.h:557: no `void 
list<_Tp,_Alloc>::_M_insert_dispatch(_List_iterator<_Tp,_Tp &,_Tp *>, 
_InputIter, _InputIter, __false_type)' member function declared in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::_M_insert_dispatch(_List_iterator<_Tp,_Tp &,_Tp *>, 
_InputIter, _InputIter, __false_type)':
/boot/develop/headers/cpp/stl_list.h:557: template definition of non-template 
`void list<_Tp,_Alloc>::_M_insert_dispatch(_List_iterator<_Tp,_Tp &,_Tp *>, 
_InputIter, _InputIter, __false_type)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:587: no `void 
list<_Tp,_Alloc>::insert(_List_iterator<_Tp,_Tp &,_Tp *>, long unsigned int, 
const _Tp &)' member function declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::insert(_List_iterator<_Tp,_Tp &,_Tp *>, long unsigned int, 
const _Tp &)':
/boot/develop/headers/cpp/stl_list.h:587: template definition of non-template 
`void list<_Tp,_Alloc>::insert(_List_iterator<_Tp,_Tp &,_Tp *>, long unsigned 
int, const _Tp &)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:595: no `struct _List_iterator<_Tp,_Tp 
&,_Tp *> list<_Tp,_Alloc>::erase(_List_iterator<_Tp,_Tp &,_Tp *>, 
_List_iterator<_Tp,_Tp &,_Tp *>)' member function declared in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `struct _List_iterator<_Tp,_Tp 
&,_Tp *> list<_Tp,_Alloc>::erase(_List_iterator<_Tp,_Tp &,_Tp *>, 
_List_iterator<_Tp,_Tp &,_Tp *>)':
/boot/develop/headers/cpp/stl_list.h:595: template definition of non-template 
`struct _List_iterator<_Tp,_Tp &,_Tp *> 
list<_Tp,_Alloc>::erase(_List_iterator<_Tp,_Tp &,_Tp *>, _List_iterator<_Tp,_Tp 
&,_Tp *>)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:603: no `void 
list<_Tp,_Alloc>::resize(long unsigned int, const _Tp &)' member function 
declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::resize(long unsigned int, const _Tp &)':
/boot/develop/headers/cpp/stl_list.h:603: template definition of non-template 
`void list<_Tp,_Alloc>::resize(long unsigned int, const _Tp &)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:616: no `class list<_Tp,_Alloc> & 
list<_Tp,_Alloc>::operator =(const list<_Tp,_Alloc> &)' member function 
declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `class list<_Tp,_Alloc> & 
list<_Tp,_Alloc>::operator =(const list<_Tp,_Alloc> &)':
/boot/develop/headers/cpp/stl_list.h:616: template definition of non-template 
`class list<_Tp,_Alloc> & list<_Tp,_Alloc>::operator =(const list<_Tp,_Alloc> 
&)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:633: no `void 
list<_Tp,_Alloc>::assign(long unsigned int, const _Tp &)' member function 
declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::assign(long unsigned int, const _Tp &)':
/boot/develop/headers/cpp/stl_list.h:633: template definition of non-template 
`void list<_Tp,_Alloc>::assign(long unsigned int, const _Tp &)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:649: no `void 
list<_Tp,_Alloc>::_M_assign_dispatch(_InputIter, _InputIter, __false_type)' 
member function declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::_M_assign_dispatch(_InputIter, _InputIter, __false_type)':
/boot/develop/headers/cpp/stl_list.h:649: template definition of non-template 
`void list<_Tp,_Alloc>::_M_assign_dispatch(_InputIter, _InputIter, 
__false_type)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:664: no `void 
list<_Tp,_Alloc>::remove(const _Tp &)' member function declared in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::remove(const _Tp &)':
/boot/develop/headers/cpp/stl_list.h:664: template definition of non-template 
`void list<_Tp,_Alloc>::remove(const _Tp &)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:677: no `void list<_Tp,_Alloc>::unique()' 
member function declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::unique()':
/boot/develop/headers/cpp/stl_list.h:677: template definition of non-template 
`void list<_Tp,_Alloc>::unique()'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:693: no `void 
list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &)' member function declared in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &)':
/boot/develop/headers/cpp/stl_list.h:693: template definition of non-template 
`void list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:711: no `void list<_Tp,_Alloc>::reverse()' 
member function declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::reverse()':
/boot/develop/headers/cpp/stl_list.h:711: template definition of non-template 
`void list<_Tp,_Alloc>::reverse()'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:727: no `void list<_Tp,_Alloc>::sort()' 
member function declared in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void list<_Tp,_Alloc>::sort()':
/boot/develop/headers/cpp/stl_list.h:727: template definition of non-template 
`void list<_Tp,_Alloc>::sort()'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:755: no `void 
list<_Tp,_Alloc>::remove_if(_Predicate)' member function declared in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::remove_if(_Predicate)':
/boot/develop/headers/cpp/stl_list.h:755: template definition of non-template 
`void list<_Tp,_Alloc>::remove_if(_Predicate)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:768: prototype for `void 
list<_Tp,_Alloc>::unique(_BinaryPredicate)' does not match any in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:677: candidate is: void 
list<_Tp,_Alloc>::unique()
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::unique(_BinaryPredicate)':
/boot/develop/headers/cpp/stl_list.h:768: template definition of non-template 
`void list<_Tp,_Alloc>::unique(_BinaryPredicate)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:785: prototype for `void 
list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &, _StrictWeakOrdering)' does not 
match any in class `list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:693: candidate is: void 
list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &)
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &, _StrictWeakOrdering)':
/boot/develop/headers/cpp/stl_list.h:785: template definition of non-template 
`void list<_Tp,_Alloc>::merge(list<_Tp,_Alloc> &, _StrictWeakOrdering)'
/boot/develop/headers/cpp/stl_list.h: At top level:
/boot/develop/headers/cpp/stl_list.h:803: prototype for `void 
list<_Tp,_Alloc>::sort(_StrictWeakOrdering)' does not match any in class 
`list<_Tp,_Alloc>'
/boot/develop/headers/cpp/stl_list.h:727: candidate is: void 
list<_Tp,_Alloc>::sort()
/boot/develop/headers/cpp/stl_list.h: In method `void 
list<_Tp,_Alloc>::sort(_StrictWeakOrdering)':
/boot/develop/headers/cpp/stl_list.h:803: template definition of non-template 
`void list<_Tp,_Alloc>::sort(_StrictWeakOrdering)'

Other related posts: