public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441
@ 2004-05-31 19:00 carlo at gcc dot gnu dot org
  2004-05-31 19:04 ` [Bug debug/15736] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: carlo at gcc dot gnu dot org @ 2004-05-31 19:00 UTC (permalink / raw)
  To: gcc-bugs

This bug, or rather a very similar one was fixed not long ago.
But it appears still to exist in todays compiler :/

To reproduce compile this:

class sbll_node_ct;

class sbll_base_ct {
protected:
  sbll_base_ct(void) { }
  ~sbll_base_ct(void) { }
  class sbll_node_ct* next;
};

class sbll_list_ct: private sbll_base_ct {
protected:
  using sbll_base_ct::next;
};


by doing:

>g++-cvs-3.5 -c -g test.cc
test.cc:12: internal compiler error: in force_decl_die, at dwarf2out.c:12441
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is with

>g++-cvs-3.5 -v
Reading specs from /usr/src/GNU/install/bin/../lib/gcc/i686-redhat-linux/3.5.0/specs
Configured with: /usr/src/gcc/gcc-cvs-3.5/configure
--prefix=/usr/local/gcc-cvs-3.5 --enable-shared --with-gnu-as --with-gnu-ld
--enable-languages=c++ --enable-debug --enable-threads=posix --disable-checking
--with-system-zlib --enable-__cxa_atexit --host=i686-redhat-linux
Thread model: posix
gcc version 3.5.0 20040530 (experimental)

-- 
           Summary: internal compiler error: in force_decl_die, at
                    dwarf2out.c:12441
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: carlo at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
@ 2004-05-31 19:04 ` pinskia at gcc dot gnu dot org
  2004-05-31 19:08 ` carlo at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-31 19:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-30 19:46 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |debug
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-30 19:46:08
               date|                            |
            Summary|internal compiler error: in |[3.5 Regression] internal
                   |force_decl_die, at          |compiler error: in
                   |dwarf2out.c:12441           |force_decl_die, at
                   |                            |dwarf2out.c:12441
   Target Milestone|---                         |3.5.0


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
  2004-05-31 19:04 ` [Bug debug/15736] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-05-31 19:08 ` carlo at gcc dot gnu dot org
  2004-06-17 10:06 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: carlo at gcc dot gnu dot org @ 2004-05-31 19:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From carlo at gcc dot gnu dot org  2004-05-30 19:52 -------
A slightly simpler test case:


struct B {
  int n;
};

struct A : B {
  using B::n;
};



-- 


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
  2004-05-31 19:04 ` [Bug debug/15736] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-05-31 19:08 ` carlo at gcc dot gnu dot org
@ 2004-06-17 10:06 ` pinskia at gcc dot gnu dot org
  2004-06-19 19:29 ` dpatel at apple dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-17 10:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-17 10:06 -------
Devang Patel, can you look into this as I think this is caused by your patch:
2004-01-27  Devang Patel <dpatel@apple.com>

        * Makefile.in (dwarf2out.o): Depend on input.h
        * dbxout.c (dbx_debug_hooks): Add new empty hook for
        imported_module_or_decl.
        (xcoff_debug_hooks): Same.
        * sdbout.c (sdb_debug_hooks): Same.
        * vmsdbgout.c (vmsdbg_debug_hooks): Same.
        * debug.c (do_nothing_debug_hooks): Same.
        (debug_nothing_tree_tree): New function.
        * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
        * dwarf2out.c: Include input.h.
        (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
        (remove_child_TAG): New function.
        (dwarf_tag_name): Handle DW_TAG_imported_module.
        (gen_subprogram_die): Equate decl number to declaration die. Do not
        remove all children dies while reusing declaration die for definition.
        Instead, selectively remove only formal parameters.
        (gen_variable_die): Equate variable decl to declaration die.
        (gen_field_die): Equate field decl to line number.
        (force_namespace_die): Replace it with ...
        (force_decl_die): ... this.
        (force_type_die): New function.
        (setup_namespace_context): Replace use of force_namespace_die() with
        force_decl_die().
        (gen_namespace_die): Same.
        (dwarf2out_imported_module_or_decl): New function.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dpatel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-06-17 10:06 ` pinskia at gcc dot gnu dot org
@ 2004-06-19 19:29 ` dpatel at apple dot com
  2004-06-19 19:33   ` Andrew Pinski
  2004-06-19 19:31 ` dpatel at apple dot com
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 9+ messages in thread
From: dpatel at apple dot com @ 2004-06-19 19:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dpatel at apple dot com  2004-06-19 19:29 -------
If following patch is reverted than it fixes this ICE.
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15736

But that patch was applied to fix Ada bootstrap. Andrew, do you have Ada setup to see if this patches 
still causes trouble with Ada?

Thanks.

-- 


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-06-19 19:29 ` dpatel at apple dot com
@ 2004-06-19 19:31 ` dpatel at apple dot com
  2004-06-19 19:33 ` pinskia at physics dot uc dot edu
  2004-09-03 17:20 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: dpatel at apple dot com @ 2004-06-19 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dpatel at apple dot com  2004-06-19 19:31 -------
Oops.  I meant following patch

http://gcc.gnu.org/ml/gcc-cvs/2004-01/msg01520.html

-- 


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


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

* Re: [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-06-19 19:29 ` dpatel at apple dot com
@ 2004-06-19 19:33   ` Andrew Pinski
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Pinski @ 2004-06-19 19:33 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

> 
> 
> ------- Additional Comments From dpatel at apple dot com  2004-06-19 19:29 -------
> If following patch is reverted than it fixes this ICE.
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15736
> 
> But that patch was applied to fix Ada bootstrap. Andrew, do you have Ada setup to see if this patches 
> still causes trouble with Ada?

Which patch, you only gave a link to this bug again?  Also Ada is broken on the mainline because of
the tree-ssa merge so I cannot test Ada :(.

Thanks,
Andrew


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-06-19 19:31 ` dpatel at apple dot com
@ 2004-06-19 19:33 ` pinskia at physics dot uc dot edu
  2004-09-03 17:20 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2004-06-19 19:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2004-06-19 19:33 -------
Subject: Re:  [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441

> 
> 
> ------- Additional Comments From dpatel at apple dot com  2004-06-19 19:29 -------
> If following patch is reverted than it fixes this ICE.
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15736
> 
> But that patch was applied to fix Ada bootstrap. Andrew, do you have Ada setup to see if this patches 
> still causes trouble with Ada?

Which patch, you only gave a link to this bug again?  Also Ada is broken on the mainline because of
the tree-ssa merge so I cannot test Ada :(.

Thanks,
Andrew



-- 


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


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

* [Bug debug/15736] [3.5 Regression] internal compiler error: in force_decl_die, at dwarf2out.c:12441
  2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-06-19 19:33 ` pinskia at physics dot uc dot edu
@ 2004-09-03 17:20 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-03 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-03 17:20 -------
Fixed by:
        * dwarf2out.c (gen_field_die): Equate decl number to die.
        * g++.dg/debug/pr15736.cc: New test.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-09-03 17:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-31 19:00 [Bug c++/15736] New: internal compiler error: in force_decl_die, at dwarf2out.c:12441 carlo at gcc dot gnu dot org
2004-05-31 19:04 ` [Bug debug/15736] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-31 19:08 ` carlo at gcc dot gnu dot org
2004-06-17 10:06 ` pinskia at gcc dot gnu dot org
2004-06-19 19:29 ` dpatel at apple dot com
2004-06-19 19:33   ` Andrew Pinski
2004-06-19 19:31 ` dpatel at apple dot com
2004-06-19 19:33 ` pinskia at physics dot uc dot edu
2004-09-03 17:20 ` pinskia 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).