This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11471] New: g++ segfaults (at probably illegal code)
- From: "bagnara at cs dot unipr dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2003 08:48:01 -0000
- Subject: [Bug c++/11471] New: g++ segfaults (at probably illegal code)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11471
Summary: g++ segfaults (at probably illegal code)
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bagnara at cs dot unipr dot it
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
[roberto@zoltan tmp]$ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ./configure --prefix=/usr/local
Thread model: posix
gcc version 3.3
[roberto@zoltan tmp]$ g++ mc91.ii
In file included from AskTell.defs.hh:205,
from mc91.cc:2:
AskTell.inlines.hh:130: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[roberto@zoltan tmp]$ /spare/bin/g++ -v
Reading specs from /spare/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: ../gcc/configure --prefix=/spare
Thread model: posix
gcc version 3.4 20030630 (experimental)
[roberto@zoltan tmp]$ /spare/bin/g++ mc91.ii
In file included from AskTell.defs.hh:29,
from mc91.cc:2:
/usr/local/include/c++/3.3/limits:897: error: `float __builtin_huge_valf()'
cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:897: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:897: error: `float __builtin_huge_valf()'
cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:897: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:899: error: `float __builtin_nanf(const
char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:899: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:899: error: `float __builtin_nanf(const
char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:899: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:900: error: `
std::numeric_limits<float>::has_quiet_NaN' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:915: error: `
std::numeric_limits<float>::has_infinity' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:915: error: `
std::numeric_limits<float>::has_quiet_NaN' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:955: error: `double __builtin_huge_val()'
cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:955: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:955: error: `double __builtin_huge_val()'
cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:955: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:957: error: `double __builtin_nan(const
char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:957: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:957: error: `double __builtin_nan(const
char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:957: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:958: error: `
std::numeric_limits<double>::has_quiet_NaN' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:973: error: `
std::numeric_limits<double>::has_infinity' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:973: error: `
std::numeric_limits<double>::has_quiet_NaN' cannot appear in a
constant-expression
/usr/local/include/c++/3.3/limits:1013: error: `long double
__builtin_huge_vall()' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1013: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:1013: error: `long double
__builtin_huge_vall()' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1013: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:1015: error: `long double
__builtin_nanl(const char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1015: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:1015: error: `long double
__builtin_nanl(const char*)' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1015: error: a function call cannot appear in
a constant-expression
/usr/local/include/c++/3.3/limits:1016: error: `std::numeric_limits<long
double>::has_quiet_NaN' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1032: error: `std::numeric_limits<long
double>::has_infinity' cannot appear in a constant-expression
/usr/local/include/c++/3.3/limits:1032: error: `std::numeric_limits<long
double>::has_quiet_NaN' cannot appear in a constant-expression
In file included from AskTell.defs.hh:30,
from mc91.cc:2:
/usr/local/include/c++/3.3/bits/stl_tree.h: In constructor `
std::_Rb_tree_base<_Tp, _Alloc>::_Rb_tree_base(const typename
std::_Rb_tree_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp,
_Allocator>::_S_instanceless>::allocator_type&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:579: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In destructor `
std::_Rb_tree_base<_Tp, _Alloc>::~_Rb_tree_base()':
/usr/local/include/c++/3.3/bits/stl_tree.h:580: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree_node<_Val>*& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_root() const':
/usr/local/include/c++/3.3/bits/stl_tree.h:648: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree_node<_Val>*& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_leftmost() const':
/usr/local/include/c++/3.3/bits/stl_tree.h:651: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree_node<_Val>*& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_rightmost() const':
/usr/local/include/c++/3.3/bits/stl_tree.h:654: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In copy constructor `
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:740: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:741: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `void
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_empty_initialize()':
/usr/local/include/c++/3.3/bits/stl_tree.h:756: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:759: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:760: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree_iterator<_Val, _Val&, _Val*> std::_Rb_tree<_Key, _Val,
_KeyOfValue, _Compare, _Alloc>::end()':
/usr/local/include/c++/3.3/bits/stl_tree.h:775: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree_iterator<_Val, const _Val&, const _Val*> std::_Rb_tree<_Key,
_Val, _KeyOfValue, _Compare, _Alloc>::end() const':
/usr/local/include/c++/3.3/bits/stl_tree.h:778: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `void
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::swap(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:804: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `void
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::clear()':
/usr/local/include/c++/3.3/bits/stl_tree.h:848: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:850: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::operator=(const
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:958: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:959: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:963: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, const
_Val&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:982: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:988: error: `_M_header' has not been
declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1007: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::insert_equal(const
_Val&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1018: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `
std::pair<typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::iterator, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::insert_unique(const _Val&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1036: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::insert_unique(std::_Rb_tree_iterator<_Val, _Val&, _Val*>, const
_Val&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1063: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1073: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::insert_equal(std::_Rb_tree_iterator<_Val, _Val&, _Val*>, const
_Val&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1105: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1115: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `void
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::erase(std::_Rb_tree_iterator<_Val, _Val&, _Val*>)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1171: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1172: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1173: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&)
':
/usr/local/include/c++/3.3/bits/stl_tree.h:1267: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&)
const':
/usr/local/include/c++/3.3/bits/stl_tree.h:1287: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::lower_bound(const
_Key&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1319: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::lower_bound(const
_Key&) const':
/usr/local/include/c++/3.3/bits/stl_tree.h:1337: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::upper_bound(const
_Key&)':
/usr/local/include/c++/3.3/bits/stl_tree.h:1355: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `typename
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::upper_bound(const
_Key&) const':
/usr/local/include/c++/3.3/bits/stl_tree.h:1373: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h: In member function `bool
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::__rb_verify()
const':
/usr/local/include/c++/3.3/bits/stl_tree.h:1431: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1431: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1431: error: `_M_header' has not
been declared
/usr/local/include/c++/3.3/bits/stl_tree.h:1431: error: `_M_header' has not
been declared
In file included from AskTell.defs.hh:32,
from mc91.cc:2:
/usr/local/include/c++/3.3/bits/stl_list.h: In constructor `
std::_List_base<_Tp, _Alloc>::_List_base(const typename
std::_List_alloc_base<_Tp, _Alloc, std::_Alloc_traits<_Tp,
_Allocator>::_S_instanceless>::allocator_type&)':
/usr/local/include/c++/3.3/bits/stl_list.h:304: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h:305: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h:305: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h:306: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h:306: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In destructor `std::_List_base<_Tp,
_Alloc>::~_List_base()':
/usr/local/include/c++/3.3/bits/stl_list.h:313: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `
std::_List_iterator<_Tp, _Tp&, _Tp*> std::list<_Tp, _Alloc>::begin()':
/usr/local/include/c++/3.3/bits/stl_list.h:569: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `
std::_List_iterator<_Tp, const _Tp&, const _Tp*> std::list<_Tp,
_Alloc>::begin() const':
/usr/local/include/c++/3.3/bits/stl_list.h:576: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `
std::_List_iterator<_Tp, _Tp&, _Tp*> std::list<_Tp, _Alloc>::end()':
/usr/local/include/c++/3.3/bits/stl_list.h:583: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `
std::_List_iterator<_Tp, const _Tp&, const _Tp*> std::list<_Tp,
_Alloc>::end() const':
/usr/local/include/c++/3.3/bits/stl_list.h:590: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `bool
std::list<_Tp, _Alloc>::empty() const':
/usr/local/include/c++/3.3/bits/stl_list.h:628: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h:628: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/stl_list.h: In member function `void
std::list<_Tp, _Alloc>::swap(std::list<_Tp, _Alloc>&)':
/usr/local/include/c++/3.3/bits/stl_list.h:910: error: `_M_node' has not been
declared
In file included from AskTell.defs.hh:32,
from mc91.cc:2:
/usr/local/include/c++/3.3/bits/list.tcc: In member function `void
std::_List_base<_Tp, _Alloc>::__clear()':
/usr/local/include/c++/3.3/bits/list.tcc:72: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:73: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:80: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:80: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:81: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:81: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc: In member function `void
std::list<_Tp, _Alloc>::sort()':
/usr/local/include/c++/3.3/bits/list.tcc:253: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:253: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:253: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:253: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc: In member function `void
std::list<_Tp, _Alloc>::sort(_StrictWeakOrdering)':
/usr/local/include/c++/3.3/bits/list.tcc:343: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:343: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:343: error: `_M_node' has not been
declared
/usr/local/include/c++/3.3/bits/list.tcc:343: error: `_M_node' has not been
declared
In file included from mc91.cc:2:
AskTell.inlines.hh: At global scope:
AskTell.inlines.hh:130: error: ISO C++ forbids declaration of `iterator' with
no type
AskTell.inlines.hh:130: error: invalid use of undefined type `struct
std::_List_iterator<_Tp, _Tp&, _Tp*>'
/usr/local/include/c++/3.3/bits/stl_list.h:144: error: declaration of `struct
std::_List_iterator<_Tp, _Tp&, _Tp*>'
AskTell.inlines.hh:130: error: template definition of non-template `int
std::_List_iterator<_Tp, _Tp&, _Tp*>::iterator()'
AskTell.inlines.hh:134: error: expected function-definition
AskTell.inlines.hh:140: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[roberto@zoltan tmp]$