public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442
@ 2005-01-12 21:00 Woebbeking at web dot de
2005-01-12 21:06 ` [Bug c++/19406] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Woebbeking at web dot de @ 2005-01-12 21:00 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]
Hi,
I get the mentioned ICE if I compile the following code with -g
(gcc < 4 works fine):
struct A
{
virtual int foo();
double d;
};
struct B : public A
{
A::d;
};
int main()
{
return 0;
}
Cheers,
André
--
Summary: ICE: in force_decl_die, at dwarf2out.c:12442
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Woebbeking at web dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/19406] [4.0 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
@ 2005-01-12 21:06 ` pinskia at gcc dot gnu dot org
2005-01-18 13:18 ` jakub at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-12 21:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-12 21:06 -------
: Search converges between 2004-01-27-trunk (#442) and 2004-01-28-trunk (#443).
Confirmed.
Caused by:
2004-01-27 Devang Patel <dpatel@apple.com>
* name-lookup.c: Include "debug.h"
(do_namespace_alias): Invoke debug_hooks to emit debug info
for namespace alias.
(do_local_using_decl): Invoke debug_hooks to emit debug info
for using decl.
(do_class_using_decl): Same.
(do_toplevel_using_decl): Same.
(do_using_directive): Same.
(cp_emit_debug_info_for_using): New function.
* Make-lang.in (cp/parser.o): Depend on debug.h
(cp/name-lookup.o): Same.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dpatel at apple dot com
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-01-12 21:06:16
date| |
Summary|ICE: in force_decl_die, at |[4.0 Regression] ICE: in
|dwarf2out.c:12442 |force_decl_die, at
| |dwarf2out.c:12442
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/19406] [4.0 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
2005-01-12 21:06 ` [Bug c++/19406] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-18 13:18 ` jakub at gcc dot gnu dot org
2005-01-18 14:10 ` reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-01-18 13:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2005-01-18 13:17 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01115.html>
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/19406] [4.0 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
2005-01-12 21:06 ` [Bug c++/19406] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-18 13:18 ` jakub at gcc dot gnu dot org
@ 2005-01-18 14:10 ` reichelt at gcc dot gnu dot org
2005-02-28 16:31 ` [Bug debug/19406] [4.0/4.1 " cvs-commit at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-18 14:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC|jakub at redhat dot com |
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (2 preceding siblings ...)
2005-01-18 14:10 ` reichelt at gcc dot gnu dot org
@ 2005-02-28 16:31 ` cvs-commit at gcc dot gnu dot org
2005-03-23 16:46 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-28 16:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-28 12:10 -------
Subject: Bug 19406
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-rhl-branch
Changes by: jakub@gcc.gnu.org 2005-02-28 12:09:27
Modified files:
gcc : ChangeLog dwarf2out.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/debug: using1.C
Log message:
PR c++/19406
* dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
(dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
for FIELD_DECLs.
* g++.dg/debug/using1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=2.7592.2.10.2.5&r2=2.7592.2.10.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.570&r2=1.570.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.5084.2.9.2.3&r2=1.5084.2.9.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/debug/using1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (3 preceding siblings ...)
2005-02-28 16:31 ` [Bug debug/19406] [4.0/4.1 " cvs-commit at gcc dot gnu dot org
@ 2005-03-23 16:46 ` pinskia at gcc dot gnu dot org
2005-03-24 17:34 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-23 16:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-23 16:46 -------
*** Bug 20513 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |lenz at cs dot wisc dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (4 preceding siblings ...)
2005-03-23 16:46 ` pinskia at gcc dot gnu dot org
@ 2005-03-24 17:34 ` mmitchel at gcc dot gnu dot org
2005-03-24 18:15 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-03-24 17:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-03-24 17:33 -------
The link referenced in Comment #3 does not actually seem to be a review of this
patch. Was there a review?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (5 preceding siblings ...)
2005-03-24 17:34 ` mmitchel at gcc dot gnu dot org
@ 2005-03-24 18:15 ` pinskia at gcc dot gnu dot org
2005-03-24 21:40 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-24 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-24 18:15 -------
(In reply to comment #6)
> The link referenced in Comment #3 does not actually seem to be a review of this
> patch. Was there a review?
Yes, but the link is wrong because the archives are messed up.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (6 preceding siblings ...)
2005-03-24 18:15 ` pinskia at gcc dot gnu dot org
@ 2005-03-24 21:40 ` jakub at gcc dot gnu dot org
2005-03-31 21:41 ` rth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-03-24 21:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2005-03-24 21:40 -------
It seems rth's review got lost in the archives :(, so I'll cut'n'paste
from my mailbox:
> 2005-01-18 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/19406
> * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
> (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
> for FIELD_DECLs.
>
> * g++.dg/debug/using1.C: New test.
I don't think this is the right approach.
Presumably we're suppressing debug for this class because it is "unused"?
If so, I can't think except that's a bug. In this test case, A is used
twice -- once through the using and once through the inheritence.
Basically, I think it's wrong to try to emit just one field of a class.
If we need a field for some reason, then we need the entire class to put
it in proper context.
--
Jason replied to this that the compiler is already doing something similar,
see http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00170.html
Daniel was wondering if gdb can handle it and I have tested that gdb
indeed handles this: http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01230.html
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com, rth
| |at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (7 preceding siblings ...)
2005-03-24 21:40 ` jakub at gcc dot gnu dot org
@ 2005-03-31 21:41 ` rth at gcc dot gnu dot org
2005-04-01 7:47 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-03-31 21:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-03-31 21:41 -------
Well, if we're already doing this, and the debugger handles it, then far be
it from me to stand in the way of progress. Patch is ok everywhere.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (8 preceding siblings ...)
2005-03-31 21:41 ` rth at gcc dot gnu dot org
@ 2005-04-01 7:47 ` cvs-commit at gcc dot gnu dot org
2005-04-01 7:51 ` cvs-commit at gcc dot gnu dot org
2005-04-01 7:54 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-01 7:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-01 07:47 -------
Subject: Bug 19406
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2005-04-01 07:47:27
Modified files:
gcc : ChangeLog dwarf2out.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/debug: using1.C
Log message:
PR c++/19406
* dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
(dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
for FIELD_DECLs.
* g++.dg/debug/using1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8065&r2=2.8066
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.579&r2=1.580
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5257&r2=1.5258
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/debug/using1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (9 preceding siblings ...)
2005-04-01 7:47 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-01 7:51 ` cvs-commit at gcc dot gnu dot org
2005-04-01 7:54 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-01 7:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-01 07:51 -------
Subject: Bug 19406
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jakub@gcc.gnu.org 2005-04-01 07:51:17
Modified files:
gcc : ChangeLog dwarf2out.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/debug: using1.C
Log message:
PR c++/19406
* dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
(dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
for FIELD_DECLs.
* g++.dg/debug/using1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.106&r2=2.7592.2.107
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.570.2.4&r2=1.570.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.84&r2=1.5084.2.85
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/debug/using1.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.2.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/19406] [4.0/4.1 Regression] ICE: in force_decl_die, at dwarf2out.c:12442
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
` (10 preceding siblings ...)
2005-04-01 7:51 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-01 7:54 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-04-01 7:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2005-04-01 07:54 -------
Fixed in CVS.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19406
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-04-01 7:54 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-12 21:00 [Bug c++/19406] New: ICE: in force_decl_die, at dwarf2out.c:12442 Woebbeking at web dot de
2005-01-12 21:06 ` [Bug c++/19406] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-18 13:18 ` jakub at gcc dot gnu dot org
2005-01-18 14:10 ` reichelt at gcc dot gnu dot org
2005-02-28 16:31 ` [Bug debug/19406] [4.0/4.1 " cvs-commit at gcc dot gnu dot org
2005-03-23 16:46 ` pinskia at gcc dot gnu dot org
2005-03-24 17:34 ` mmitchel at gcc dot gnu dot org
2005-03-24 18:15 ` pinskia at gcc dot gnu dot org
2005-03-24 21:40 ` jakub at gcc dot gnu dot org
2005-03-31 21:41 ` rth at gcc dot gnu dot org
2005-04-01 7:47 ` cvs-commit at gcc dot gnu dot org
2005-04-01 7:51 ` cvs-commit at gcc dot gnu dot org
2005-04-01 7:54 ` jakub 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).