This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
2.95.2 19991024 (release), Next 3.3; -fno-elide-constructors causeserrors
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 2.95.2 19991024 (release), Next 3.3; -fno-elide-constructors causeserrors
- From: James McKelvey <mckelvey at fafnir dot com>
- Date: Sat, 2 Sep 2000 21:32:13 -0700
- Reply-To: mckelvey at maskull dot com
Attached program compiles and runs fine until -fno-elide-constructors is added; then it gets the "invalid use of void expression" errors in stl.
maskull:tests>g++ -v -save-temps -c -DNeXT -fno-elide-constructors -I.. test1.cc
Reading specs from /usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/specs
Reading specs from /usr/local/lib/gcc-lib/m68k-next-nextstep3/specs
gcc driver version 2.95.2 19991024 (release) executing gcc version egcs-2.91.53
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/cpp -lang-c++ -v -I.. -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=91 -D__cplusplus -Dmc68000 -Dm68k -DNeXT -Dunix -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -D_NEXT_SOURCE -D__mc68000__ -D__m68k__ -D__NeXT__ -D__unix__ -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -D_NEXT_SOURCE -D__mc68000 -D__m68k -D__NeXT -D__unix -Asystem(unix) -Asystem(mach) -Acpu(m68k) -Amachine(m68k) -D__EXCEPTIONS -D__STDC__ -D_NEXT_SOURCE -DNeXT test1.cc test1.ii
GNU CPP version 2.95.2 19991024 (release) (68k, MIT syntax)
#include "..." search starts here:
#include <...> search starts here:
..
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../m68k-next-nextstep3/include
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/include
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/include/ansi
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/include/bsd
/NextDeveloper/Headers
/NextDeveloper/Headers/ansi
/NextDeveloper/Headers/bsd
/LocalDeveloper/Headers
/NextDeveloper/2.0CompatibleHeaders
/usr/include
/usr/include/bsd
End of search list.
The following default directories have been omitted from the search path:
/LocalDeveloper/Headers/ansi
/LocalDeveloper/Headers/bsd
End of omitted list.
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/cc1plus test1.ii -quiet -dumpbase test1.cc -version -fno-elide-constructors -o test1.s
GNU C++ version 2.95.2 19991024 (release) (m68k-next-nextstep3) compiled by GNU C version 2.95.2 19991024 (release).
In file included from /usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/vector:35,
from ../PatternMasterTop.h:31,
from ../AbstractPattern.h:30,
from ../Pattern.h:30,
from test1.cc:26:
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h: In method `_Bit_reference::_Bit_reference(const _Bit_reference &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h:98: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h: In method `_Bit_iterator::_Bit_iterator(const _Bit_iterator &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h:104: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h: In method `_Bit_const_iterator::_Bit_const_iterator(const _Bit_const_iterator &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_bvector.h:191: invalid use of void expression
In file included from /usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/iomanip:6,
from ../PatternMasterTop.h:33,
from ../AbstractPattern.h:30,
from ../Pattern.h:30,
from test1.cc:26:
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/iomanip.h: In method `smanip<int>::smanip(const smanip<int> &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/iomanip.h:171: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/iomanip.h: In method `smanip<long unsigned int>::smanip(const smanip <long unsigned int> &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/iomanip.h:176: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h: In method `less<const PatternMaster::PatternMasterTop *>::less(const less<const PatternMaster::PatternMasterTop *> &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:653: instantiated from `_Rb_tree<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *,_Identity<const PatternMaster::PatternMasterTop *>,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::_Rb_tree(const less<const PatternMaster::PatternMasterTop *> &, const allocator<const PatternMaster::PatternMasterTop *> &)'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:75: instantiated from `set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::set()'
../AutoRef.h:279: instantiated from `PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>::delete_reference()'
../AutoRef.h:124: instantiated from here
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:653: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_pair.h: In method `_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>::_Rb_tree_iterator(const _Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_pair.h:44: instantiated from `pair<_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>,bool>::pair(const _Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> &, const bool &)'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:134: instantiated from `set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::insert(const PatternMaster::PatternMasterTop *const &)'
../AutoRef.h:281: instantiated from `PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>::delete_reference()'
../AutoRef.h:124: instantiated from here
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_pair.h:44: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h: In method `pair<_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>,bool>::pair(const pair<_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>,bool> &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:134: instantiated from `set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::insert(const PatternMaster::PatternMasterTop *const &)'
../AutoRef.h:281: instantiated from `PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>::delete_reference()'
../AutoRef.h:124: instantiated from here
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:134: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h: In method `pair<_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>,_Rb_tree_iterator <const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> >::pair(const pair <_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>,_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> > &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:1253: instantiated from `_Rb_tree<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *,_Identity<const PatternMaster::PatternMasterTop *>,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::equal_range(const PatternMaster::PatternMasterTop *const &) const'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:1156: instantiated from `_Rb_tree<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *,_Identity<const PatternMaster::PatternMasterTop *>,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::count(const PatternMaster::PatternMasterTop *const &) const'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:169: instantiated from `set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::count(const PatternMaster::PatternMasterTop *const &) const'
../AutoRef.h:255: instantiated from `PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>::circular_count(const PatternMaster::PatternMasterTop &, set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> > &) const'
../AutoRef.h:283: instantiated from `PatternMaster::AutoRef <PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>,PatternMaster::AUTOREFREF>::delete_reference()'
../AutoRef.h:124: instantiated from here
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:1253: invalid use of void expression
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_iterator.h: In method `bidirectional_iterator_tag::bidirectional_iterator_tag(const bidirectional_iterator_tag &)':
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_iterator.h:141: instantiated from `__iterator_category <_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> >(const _Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> &)'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_iterator.h:160: instantiated from `iterator_category <_Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> >(const _Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *> &)'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_iterator.h:280: instantiated from `distance<_Rb_tree_iterator <const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>, size_t>(_Rb_tree_iterator <const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>, _Rb_tree_iterator<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *const &,const PatternMaster::PatternMasterTop *const *>, size_t &)'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_tree.h:1158: instantiated from `_Rb_tree<const PatternMaster::PatternMasterTop *,const PatternMaster::PatternMasterTop *,_Identity<const PatternMaster::PatternMasterTop *>,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::count(const PatternMaster::PatternMasterTop *const &) const'
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_set.h:169: instantiated from `set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> >::count(const PatternMaster::PatternMasterTop *const &) const'
../AutoRef.h:255: instantiated from `PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>::circular_count(const PatternMaster::PatternMasterTop &, set<const PatternMaster::PatternMasterTop *,less<const PatternMaster::PatternMasterTop *>,allocator<const PatternMaster::PatternMasterTop *> > &) const'
../AutoRef.h:283: instantiated from `PatternMaster::AutoRef <PatternMaster::AutoRef<const PatternMaster::AbstractPattern,PatternMaster::AUTOCONSTREFABSPATTERN>,PatternMaster::AUTOREFREF>::delete_reference()'
../AutoRef.h:124: instantiated from here
/usr/local/lib/gcc-lib/m68k-next-nextstep3/2.95.2/../../../../include/g++-3/stl_iterator.h:141: invalid use of void expression
maskull:tests>
debug.tar.bz2