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
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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 ` belyshev at depni dot sinp dot msu dot ru
2005-07-16 20:13 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-07-16 19:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-07-16 19:47 -------
Confirmed, introduced between "2005-06-08 00:20 UTC" and "2005-06-09 00:20 UTC"
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-16 19:47:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-16 20:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-16 19:53 -------
I think it was caused by:
+2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
+
+ PR c++/19497
+ * cp-tree.def (USING_DECL): Update documentation.
+ * cp-tree.h (DECL_DEPENDENT_P): New.
+ (USING_DECL_DECLS, USING_DECL_SCOPE): New.
+ * class.c (handle_using_decl): Move most of the processing to ...
+ * name-lookup.c (do_class_using_decl): ... here. Make stricter.
+ (push_using_decl): Use USING_DECL_SCOPE.
+ (cp_emit_debug_info_for_using): Make extern.
+ * cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
+ * name-lookup.h (cp_emit_debug_info_for_using): Declare.
+ * pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
+ when tsubsting.
+ (tsubst_expr): Use USING_DECL_SCOPE.
+ * search.c (lookup_field_1): Use DECL_DEPENDENT_P.
+ * semantics.c (finish_member_declaration): Likewise.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
Known to fail| |4.1.0
Known to work| |4.0.0
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-21 17:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-21 17:37 -------
*** Bug 22593 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |micis at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (2 preceding siblings ...)
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
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-21 17:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-21 17:44 -------
Here is a shorter testcase:
namespace s
{
template <int> struct _List_base
{
int _M_impl;
};
template<int i> struct list : _List_base<i>
{
using _List_base<i>::_M_impl;
}
}
s::list<1> OutputModuleListType;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (3 preceding siblings ...)
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
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23 5:05 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (4 preceding siblings ...)
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
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-07-29 6:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-07-29 06:41 -------
if (sorrycount || errorcount)
return;
at the top of cp_emit_debug_info_for_using seems to fix this ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (5 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-07-30 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-07-30 15:25 -------
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg02054.html
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |phython at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords| |patch
Last reconfirmed|2005-07-16 19:47:35 |2005-07-30 15:25:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-06 5:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-06 05:18 -------
Subject: Bug 22514
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: phython@gcc.gnu.org 2005-08-06 05:18:09
Modified files:
gcc/cp : ChangeLog name-lookup.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: pr22514.C
Log message:
2005-08-05 James A. Morrison <phython@gcc.gnu.org>
PR c++/22514
* name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
sorrycount or errorcount are nonzero.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4840&r2=1.4841
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.134&r2=1.135
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5882&r2=1.5883
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/pr22514.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22514
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/22514] [4.1 Regression] ICE in force_decl_die with invalid code after error
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
` (7 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-06 5:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-08-06 05:18 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
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).