public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24824]  New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
@ 2005-11-12 19:03 wanderer at rsu dot ru
  2005-11-12 19:04 ` [Bug c++/24824] " wanderer at rsu dot ru
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: wanderer at rsu dot ru @ 2005-11-12 19:03 UTC (permalink / raw)
  To: gcc-bugs

g++ ICE with error message:

test.cc:24: internal compiler error: in build_abbrev_table, at dwarf2out.c:6427
Please submit a full bug report,

g++ call: g++ -c -gdwarf-2 -feliminate-dwarf2-dups test.cc -o test.o

testcase:
---8X----------------------------------
namespace N {

  struct I {};

  template<typename _Tp>
  struct _V_base {
    I _impl;
  };

  template<typename _Tp >
  struct V : _V_base<_Tp> {
    using _V_base<_Tp>::_impl;
  };

} // namespace N

struct S {};

struct T {
  T();
  N::V<S*> _l;
};

T::T() {}
---X8----------------------------------

ICE with:
gcc version 4.1.0 20051104 (experimental)
gcc version 4.1.0 20051110 (experimental)

OK with:
gcc version 3.4.4 [FreeBSD] 20050518 (system compiler)
gcc version 3.4.4 20050513 (prerelease)
gcc version 3.5.0 20040712 (experimental)
gcc version 4.0.2


-- 
           Summary: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -
                    feliminate-dwarf2-dups
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wanderer at rsu dot ru
 GCC build triplet: i386-unknown-freebsd6.0
  GCC host triplet: i386-unknown-freebsd6.0
GCC target triplet: i386-unknown-freebsd6.0


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


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

* [Bug c++/24824] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
@ 2005-11-12 19:04 ` wanderer at rsu dot ru
  2005-11-12 19:09 ` [Bug debug/24824] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: wanderer at rsu dot ru @ 2005-11-12 19:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from wanderer at rsu dot ru  2005-11-12 19:04 -------
Created an attachment (id=10229)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10229&action=view)
testcase source


-- 


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
  2005-11-12 19:04 ` [Bug c++/24824] " wanderer at rsu dot ru
@ 2005-11-12 19:09 ` pinskia at gcc dot gnu dot org
  2005-11-13 18:19 ` wanderer at rsu dot ru
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-12 19:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-11-12 19:09 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i386-unknown-freebsd6.0     |
   GCC host triplet|i386-unknown-freebsd6.0     |
 GCC target triplet|i386-unknown-freebsd6.0     |i?86-*-* with dwarf2
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.0
      Known to work|                            |3.4.0 3.3.3 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-12 19:09:06
               date|                            |
            Summary|ICE: in build_abbrev_table, |[4.1 Regression] ICE: in
                   |at dwarf2out.c:6427 with -  |build_abbrev_table, at
                   |feliminate-dwarf2-dups      |dwarf2out.c:6427 with -
                   |                            |feliminate-dwarf2-dups
   Target Milestone|---                         |4.1.0


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
  2005-11-12 19:04 ` [Bug c++/24824] " wanderer at rsu dot ru
  2005-11-12 19:09 ` [Bug debug/24824] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-11-13 18:19 ` wanderer at rsu dot ru
  2005-11-13 18:20 ` wanderer at rsu dot ru
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: wanderer at rsu dot ru @ 2005-11-13 18:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from wanderer at rsu dot ru  2005-11-13 18:19 -------
Created an attachment (id=10231)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10231&action=view)
simplified testcase


-- 


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (2 preceding siblings ...)
  2005-11-13 18:19 ` wanderer at rsu dot ru
@ 2005-11-13 18:20 ` wanderer at rsu dot ru
  2005-11-14 20:43 ` janis at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: wanderer at rsu dot ru @ 2005-11-13 18:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from wanderer at rsu dot ru  2005-11-13 18:20 -------
More simple testcase (without templates):

----8X---------------------------------
namespace N {

  struct _V_base {
    int _impl;
  };

  struct V : _V_base {
    using _V_base::_impl;
  };

} // namespace N

struct T {
  T();
  N::V _l;
};

T::T() {}
----X8---------------------------------


-- 


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (3 preceding siblings ...)
  2005-11-13 18:20 ` wanderer at rsu dot ru
@ 2005-11-14 20:43 ` janis at gcc dot gnu dot org
  2005-11-19  2:12 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-11-14 20:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from janis at gcc dot gnu dot org  2005-11-14 20:43 -------
A regression hunt on powerpc-linux using the testcase from comment #4
identified the following patch:

http://gcc.gnu.org/viewcvs?view=rev&rev=100757

r100757 | nathan | 2005-06-08 11:49:23 +0000 (Wed, 08 Jun 2005)


-- 

janis at gcc dot gnu dot org changed:

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


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (4 preceding siblings ...)
  2005-11-14 20:43 ` janis at gcc dot gnu dot org
@ 2005-11-19  2:12 ` mmitchel at gcc dot gnu dot org
  2005-11-20 19:18 ` nathan at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-19  2:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2005-11-19 02:12 -------
Showstopper.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug debug/24824] [4.1 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (5 preceding siblings ...)
  2005-11-19  2:12 ` mmitchel at gcc dot gnu dot org
@ 2005-11-20 19:18 ` nathan at gcc dot gnu dot org
  2005-12-27 11:08 ` [Bug debug/24824] [4.1/4.2 " steven at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-11-20 19:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from nathan at gcc dot gnu dot org  2005-11-20 19:18 -------
I'll have a look tomorrow


-- 

nathan at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-11-12 19:09:06         |2005-11-20 19:18:14
               date|                            |


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


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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (6 preceding siblings ...)
  2005-11-20 19:18 ` nathan at gcc dot gnu dot org
@ 2005-12-27 11:08 ` steven at gcc dot gnu dot org
  2005-12-27 11:11 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-12-27 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from steven at gcc dot gnu dot org  2005-12-27 11:08 -------
Nathan, tomorrow is more than a month ago.  Ping!


-- 


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


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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (7 preceding siblings ...)
  2005-12-27 11:08 ` [Bug debug/24824] [4.1/4.2 " steven at gcc dot gnu dot org
@ 2005-12-27 11:11 ` steven at gcc dot gnu dot org
  2006-01-06 13:39 ` nathan at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-12-27 11:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from steven at gcc dot gnu dot org  2005-12-27 11:11 -------
The patch that Janis identified in comment #5 fixed bug 19497, which is only an
"accepts-invalid".  Bug 19497 was not fixed on the GCC 4.0 branch.  Perhaps
that patch to fix it for GCC 4.1 should just be reverted if a fix for this bug
here can't be found quickly.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |19497


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


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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (8 preceding siblings ...)
  2005-12-27 11:11 ` steven at gcc dot gnu dot org
@ 2006-01-06 13:39 ` nathan at gcc dot gnu dot org
  2006-01-12 16:01 ` nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-01-06 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from nathan at gcc dot gnu dot org  2006-01-06 13:39 -------
Created an attachment (id=10588)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10588&action=view)
simplest test case

This appears to be tickling a latent bug in the dwarf code.  Before my patch I
discover that the structure's dwarf information appears to be a child of
comp_unit, whereas afterwards it's a child of a namespace.  the latter seems
correct to me -- I am investigating.


-- 


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



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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (9 preceding siblings ...)
  2006-01-06 13:39 ` nathan at gcc dot gnu dot org
@ 2006-01-12 16:01 ` nathan at gcc dot gnu dot org
  2006-01-12 16:14 ` nathan at gcc dot gnu dot org
  2006-01-12 16:20 ` nathan at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-01-12 16:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from nathan at gcc dot gnu dot org  2006-01-12 16:01 -------
Subject: Bug 24824

Author: nathan
Date: Thu Jan 12 16:01:15 2006
New Revision: 109643

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109643
Log:
        PR c++/24824
        * class.c (handle_using_decl): Pass correct scope to
        cp_emit_debug_info_for_using.

        PR c++/24824
        * g++.dg/debug/dwarf2-1.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (10 preceding siblings ...)
  2006-01-12 16:01 ` nathan at gcc dot gnu dot org
@ 2006-01-12 16:14 ` nathan at gcc dot gnu dot org
  2006-01-12 16:20 ` nathan at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-01-12 16:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from nathan at gcc dot gnu dot org  2006-01-12 16:13 -------
2006-01-12  Nathan Sidwell  <nathan@codesourcery.com>

        PR c++/24824
        * class.c (handle_using_decl): Pass correct scope to
        cp_emit_debug_info_for_using.

        PR c++/24824
        * g++.dg/debug/dwarf2-1.C: New.


-- 

nathan at gcc dot gnu dot org changed:

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


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


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

* [Bug debug/24824] [4.1/4.2 Regression] ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups
  2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
                   ` (11 preceding siblings ...)
  2006-01-12 16:14 ` nathan at gcc dot gnu dot org
@ 2006-01-12 16:20 ` nathan at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: nathan at gcc dot gnu dot org @ 2006-01-12 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from nathan at gcc dot gnu dot org  2006-01-12 16:20 -------
Subject: Bug 24824

Author: nathan
Date: Thu Jan 12 16:20:10 2006
New Revision: 109644

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109644
Log:
        PR c++/24824
        * class.c (handle_using_decl): Pass correct scope to
        cp_emit_debug_info_for_using.

        PR c++/24824
        * g++.dg/debug/dwarf2-1.C: New.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/debug/dwarf2-1.C
      - copied unchanged from r109643,
trunk/gcc/testsuite/g++.dg/debug/dwarf2-1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/class.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2006-01-12 16:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-12 19:03 [Bug c++/24824] New: ICE: in build_abbrev_table, at dwarf2out.c:6427 with -feliminate-dwarf2-dups wanderer at rsu dot ru
2005-11-12 19:04 ` [Bug c++/24824] " wanderer at rsu dot ru
2005-11-12 19:09 ` [Bug debug/24824] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-11-13 18:19 ` wanderer at rsu dot ru
2005-11-13 18:20 ` wanderer at rsu dot ru
2005-11-14 20:43 ` janis at gcc dot gnu dot org
2005-11-19  2:12 ` mmitchel at gcc dot gnu dot org
2005-11-20 19:18 ` nathan at gcc dot gnu dot org
2005-12-27 11:08 ` [Bug debug/24824] [4.1/4.2 " steven at gcc dot gnu dot org
2005-12-27 11:11 ` steven at gcc dot gnu dot org
2006-01-06 13:39 ` nathan at gcc dot gnu dot org
2006-01-12 16:01 ` nathan at gcc dot gnu dot org
2006-01-12 16:14 ` nathan at gcc dot gnu dot org
2006-01-12 16:20 ` nathan 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).