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]
Other format: [Raw text]

Re: Another new-parser problem? (libstdc++)


Ok, a "simple" testcase is attached (unincluded output from -save-temps
.ii file, line-numbers and blank lines removed, etc.). To reproduce
simply do

> g++ -c CompressibleBlock.ii.h

Hope this helps,

   Richard.

On Fri, 17 Jan 2003, Phil Edwards wrote:

> On Fri, Jan 17, 2003 at 11:26:29AM +0100, Richard Guenther wrote:
> > Hi!
> >
> > Does the following look familiar to anyone? (with todays mainline)
> >
> > /home/rguenth/ix86/gcc3.4/include/c++/3.4/bits/stl_vector.h: In
> > instantiation of `std::_Vector_alloc_base<Observer<T*>*, std::allocator<Observer<T*>*>,
> > std::_Alloc_traits<Observer<T*>*, std::allocator<Observer<T*>*> >::_S_instanceless>':
> > /net/bellatrix/home/rguenth/src/pooma-bugfixes/r2/src/Utilities/Observable.h:236:
> > instantiated from `std::_Vector_base<Observer<T*>*, std::allocator<Observer<T*>*> >'
> > /net/bellatrix/home/rguenth/src/pooma-bugfixes/r2/src/Utilities/Observable.h:236:
> > instantiated from `std::vector<Observer<T*>*, std::allocator<Observer<T*>*> >'
> > /net/bellatrix/home/rguenth/src/pooma-bugfixes/r2/src/Utilities/Observable.h:236:
> > instantiated from `Observable<T*>'
> > /net/bellatrix/home/rguenth/src/pooma-bugfixes/r2/src/Engine/CompressibleBlock.h:742:
> >   instantiated from here
> > /home/rguenth/ix86/gcc3.4/include/c++/3.4/bits/stl_vector.h:91: error: `
> >    std::_Vector_alloc_base<_Tp, _Allocator, _IsStatic>::_M_data_allocator'
> > has incomplete type
> > /home/rguenth/ix86/gcc3.4/include/c++/3.4/bits/stl_vector.h:91: confused
> > by earlier errors, bailing out
>
> I don't see that, but I'm getting compiler segfaults during the normal build.
> Going into the library builddir and running 'make' works (it doesn't pass
> -O2 in this case).
>
> > I did look at the stl_vector.h part and the _Alloc_traits template, but
> > nothing obvious seems to be wrong...
>
> I'm guessing some possible fallout from the removal of the implicit typename
> extension... I've seen some odd errors in the last 48 hours about lookups
> of base members.
>
> Phil

--
Richard Guenther <richard.guenther@uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/

Attachment: CompressibleBlock.ii.h.gz
Description: testcase


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