public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11471] New: g++ segfaults (at probably illegal code)
@ 2003-07-09  8:48 bagnara at cs dot unipr dot it
  2003-07-09  8:54 ` [Bug c++/11471] " bagnara at cs dot unipr dot it
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-07-09  8:48 UTC (permalink / raw)
  To: gcc-bugs

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]$


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] g++ segfaults (at probably illegal code)
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
@ 2003-07-09  8:54 ` bagnara at cs dot unipr dot it
  2003-07-09 14:18 ` [Bug c++/11471] ICE on illegal use of typedef'd member class bangerth at dealii dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-07-09  8:54 UTC (permalink / raw)
  To: gcc-bugs

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



------- Additional Comments From bagnara at cs dot unipr dot it  2003-07-09 08:54 -------
Created an attachment (id=4368)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4368&action=view)
Preprocessed source triggering the problem.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
  2003-07-09  8:54 ` [Bug c++/11471] " bagnara at cs dot unipr dot it
@ 2003-07-09 14:18 ` bangerth at dealii dot org
  2003-07-09 21:15 ` neroden at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-07-09 14:18 UTC (permalink / raw)
  To: gcc-bugs

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-09 14:18:55
               date|                            |
            Summary|g++ segfaults (at probably  |ICE on illegal use of
                   |illegal code)               |typedef'd member class


------- Additional Comments From bangerth at dealii dot org  2003-07-09 14:18 -------
Yes, the code is invalid, and yes gcc versions 3.2, 3.3 and mainline
ICE on that (don't have older versions on this machine, sorry). Here's
a cut down testcase:
------------------------
template <typename T>
struct X {
  typedef typename T::type type;
};

template <typename T>
X<T>::type::type() {}
-------------------------

tmp/gg> c++ -c y.cc
y.cc:7: 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.

W.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
  2003-07-09  8:54 ` [Bug c++/11471] " bagnara at cs dot unipr dot it
  2003-07-09 14:18 ` [Bug c++/11471] ICE on illegal use of typedef'd member class bangerth at dealii dot org
@ 2003-07-09 21:15 ` neroden at gcc dot gnu dot org
  2003-07-09 21:16 ` neroden at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-09 21:15 UTC (permalink / raw)
  To: gcc-bugs

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


neroden at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
           Keywords|                            |error-recovery


------- Additional Comments From neroden at gcc dot gnu dot org  2003-07-09 21:15 -------
Error-recovery, so minor.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
                   ` (2 preceding siblings ...)
  2003-07-09 21:15 ` neroden at gcc dot gnu dot org
@ 2003-07-09 21:16 ` neroden at gcc dot gnu dot org
  2003-08-23  0:21 ` dhazeghi at yahoo dot com
  2003-12-08 23:33 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-09 21:16 UTC (permalink / raw)
  To: gcc-bugs

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


neroden at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal
           Keywords|error-recovery              |


------- Additional Comments From neroden at gcc dot gnu dot org  2003-07-09 21:16 -------
Oops.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
                   ` (3 preceding siblings ...)
  2003-07-09 21:16 ` neroden at gcc dot gnu dot org
@ 2003-08-23  0:21 ` dhazeghi at yahoo dot com
  2003-12-08 23:33 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  0:21 UTC (permalink / raw)
  To: gcc-bugs

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
  2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
                   ` (4 preceding siblings ...)
  2003-08-23  0:21 ` dhazeghi at yahoo dot com
@ 2003-12-08 23:33 ` reichelt at gcc dot gnu dot org
  5 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-08 23:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-12-08 23:33 -------
Just for the record: The code causes ICEs since at least gcc 2.95.x.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt 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           |
           Keywords|                            |monitored


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11471


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
       [not found] <bug-11471-1710@http.gcc.gnu.org/bugzilla/>
  2006-02-17  1:23 ` jde at google dot com
  2006-04-29 21:40 ` reichelt at gcc dot gnu dot org
@ 2006-04-29 21:49 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 21:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2006-04-29 21:49 -------
This has been fixed in mainline by Mark's patch fro PR27102.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11471


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
       [not found] <bug-11471-1710@http.gcc.gnu.org/bugzilla/>
  2006-02-17  1:23 ` jde at google dot com
@ 2006-04-29 21:40 ` reichelt at gcc dot gnu dot org
  2006-04-29 21:49 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-29 21:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-04-29 21:40 -------
Subject: Bug 11471

Author: reichelt
Date: Sat Apr 29 21:39:54 2006
New Revision: 113382

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113382
Log:
        PR c++/11471
        PR c++/27102
        * g++.dg/template/crash48.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash48.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11471


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/11471] ICE on illegal use of typedef'd member class
       [not found] <bug-11471-1710@http.gcc.gnu.org/bugzilla/>
@ 2006-02-17  1:23 ` jde at google dot com
  2006-04-29 21:40 ` reichelt at gcc dot gnu dot org
  2006-04-29 21:49 ` reichelt at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: jde at google dot com @ 2006-02-17  1:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jde at google dot com  2006-02-17 01:23 -------
Using the source above, and gcc-4,[01], I at least get the error message, but
4.1 still dies...

gcc-4.0.1-glibc-2.3.2-i686-piii-linux-gnu-g++ -c main.cc
main.cc:7: error: ISO C++ forbids declaration of 'type' with no type
main.cc:7: confused by earlier errors, bailing out
[Does not core]

gcc-4.1-20050819-glibc-2.3.2-i686-piii-linux-gnu-g++ main.cc
main.cc:7: error: ISO C++ forbids declaration of 'type' with no type
main.cc:7: 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.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11471


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-04-29 21:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-09  8:48 [Bug c++/11471] New: g++ segfaults (at probably illegal code) bagnara at cs dot unipr dot it
2003-07-09  8:54 ` [Bug c++/11471] " bagnara at cs dot unipr dot it
2003-07-09 14:18 ` [Bug c++/11471] ICE on illegal use of typedef'd member class bangerth at dealii dot org
2003-07-09 21:15 ` neroden at gcc dot gnu dot org
2003-07-09 21:16 ` neroden at gcc dot gnu dot org
2003-08-23  0:21 ` dhazeghi at yahoo dot com
2003-12-08 23:33 ` reichelt at gcc dot gnu dot org
     [not found] <bug-11471-1710@http.gcc.gnu.org/bugzilla/>
2006-02-17  1:23 ` jde at google dot com
2006-04-29 21:40 ` reichelt at gcc dot gnu dot org
2006-04-29 21:49 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).