public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/22514] New: [4.1 Regression] ICE in force_decl_die with invalid code after error
@ 2005-07-16 19:47 pinskia at gcc dot gnu dot org
  2005-07-16 19:53 ` [Bug debug/22514] " belyshev at depni dot sinp dot msu dot ru
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-16 19:47 UTC (permalink / raw)
  To: gcc-bugs

Take this invalid C++ code, we ICE in force_decl_die when we supply -gdwarf-2:

namespace std {
  template<typename _Alloc> class allocator;
}
namespace boost {
  struct heap_clone_allocator {
  };
  namespace ptr_container_detail {
    template < class Config, class CloneAllocator > struct reversible_ptr_container {
      static const bool allow_null = Config::allow_null;
      template< bool allow_null_values > struct null_clone_allocator {};
    }
  };
}
namespace ptr_container_detail {
  template < class T, class VoidPtrSeq > struct sequence_config {
    typedef typename VoidPtrSeq::allocator_type allocator_type;
  };
}
template < class T, class VoidPtrSeq, class CloneAllocator = heap_clone_allocator > struct 
ptr_sequence_adapter : 
ptr_container_detail::reversible_ptr_container< ptr_container_detail::sequence_config<T,VoidPtrSeq>, 
CloneAllocator >
{
};
 }
namespace std {
  template<typename _Tp, typename _Alloc> struct _List_base {
    struct _List_impl : _Node_Alloc_type {
    };
    _List_impl _M_impl;
  };
  template<typename _Tp, typename _Alloc = std::allocator<_Tp> > struct list : _List_base<_Tp, 
_Alloc> {
    typedef _List_base<_Tp, _Alloc> _Base;
    using _Base::_M_impl;
  };
}
namespace boost {
  template < class T, class CloneAllocator = heap_clone_allocator, class Allocator = std::
allocator<void*> >
  class ptr_list
  :
  public ptr_sequence_adapter< T, std::list<void*,Allocator>, CloneAllocator >
  {
  };
  struct B {
    typedef boost::ptr_list<B> C;
    C c;

-- 
           Summary: [4.1 Regression] ICE in force_decl_die with invalid code
                    after error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-08-06  5:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16 19:47 [Bug debug/22514] New: [4.1 Regression] ICE in force_decl_die with invalid code after error pinskia at gcc dot gnu dot org
2005-07-16 19:53 ` [Bug debug/22514] " belyshev at depni dot sinp dot msu dot ru
2005-07-16 20:13 ` pinskia at gcc dot gnu dot org
2005-07-21 17:37 ` pinskia at gcc dot gnu dot org
2005-07-21 17:54 ` pinskia at gcc dot gnu dot org
2005-07-23  5:05 ` pinskia at gcc dot gnu dot org
2005-07-29  6:54 ` phython at gcc dot gnu dot org
2005-07-30 15:26 ` phython at gcc dot gnu dot org
2005-08-06  5:18 ` cvs-commit at gcc dot gnu dot org
2005-08-06  5:19 ` phython 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).