From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6524 invoked by alias); 16 Jul 2005 19:42:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6513 invoked by uid 48); 16 Jul 2005 19:41:58 -0000 Date: Sat, 16 Jul 2005 19:47:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050716194156.22514.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug debug/22514] New: [4.1 Regression] ICE in force_decl_die with invalid code after error X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02031.txt.bz2 List-Id: Take this invalid C++ code, we ICE in force_decl_die when we supply -gdwarf-2: namespace std { template 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, CloneAllocator > { }; } namespace std { template struct _List_base { struct _List_impl : _Node_Alloc_type { }; _List_impl _M_impl; }; template > 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 > class ptr_list : public ptr_sequence_adapter< T, std::list, CloneAllocator > { }; struct B { typedef boost::ptr_list 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