public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/24569]  New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
@ 2005-10-28 16:18 bangerth at dealii dot org
  2005-10-28 16:19 ` [Bug debug/24569] " bangerth at dealii dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-10-28 16:18 UTC (permalink / raw)
  To: gcc-bugs

Attached file shows a fairly new ICE on x86_64. Compile with -g to get

base> c++ geometry_info.ii -g
source/geometry_info.cc:354: internal compiler error: in add_AT_specification,
at dwarf2out.c:4966
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


W.


-- 
           Summary: [4.1 regression] ICE in add_AT_specification, at
                    dwarf2out.c:4966
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org


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


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

* [Bug debug/24569] [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
@ 2005-10-28 16:19 ` bangerth at dealii dot org
  2005-10-28 16:26 ` bangerth at dealii dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-10-28 16:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at dealii dot org  2005-10-28 16:19 -------
Created an attachment (id=10076)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10076&action=view)
Preprocessed sources


-- 


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


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

* [Bug debug/24569] [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
  2005-10-28 16:19 ` [Bug debug/24569] " bangerth at dealii dot org
@ 2005-10-28 16:26 ` bangerth at dealii dot org
  2005-10-28 16:34 ` [Bug c++/24569] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2005-10-28 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2005-10-28 16:26 -------
And here's the minimal testcase:
-----------------------------
template <int dim>
struct S
{
    static const int u = 2 * dim;
    static const int p[u];
    static int f();
};

template <>
inline int S<3>::f () { return 1; }

template <int dim> const int S<dim>::u;

template class S<3>;
-----------------------

base> c++ -c x.cc -g
x.cc:13: internal compiler error: in add_AT_specification, at dwarf2out.c:4966
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

W.


-- 


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


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

* [Bug c++/24569] [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
  2005-10-28 16:19 ` [Bug debug/24569] " bangerth at dealii dot org
  2005-10-28 16:26 ` bangerth at dealii dot org
@ 2005-10-28 16:34 ` pinskia at gcc dot gnu dot org
  2005-10-28 16:37 ` [Bug c++/24569] [4.0/4.1 " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 16:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|debug                       |c++
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (2 preceding siblings ...)
  2005-10-28 16:34 ` [Bug c++/24569] " pinskia at gcc dot gnu dot org
@ 2005-10-28 16:37 ` pinskia at gcc dot gnu dot org
  2005-10-28 16:43 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-28 16:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.3
            Summary|[4.1 regression] ICE in     |[4.0/4.1 regression] ICE in
                   |add_AT_specification, at    |add_AT_specification, at
                   |dwarf2out.c:4966            |dwarf2out.c:4966
   Target Milestone|4.1.0                       |4.0.3


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (3 preceding siblings ...)
  2005-10-28 16:37 ` [Bug c++/24569] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2005-10-28 16:43 ` pinskia at gcc dot gnu dot org
  2005-10-28 21:05 ` jason 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-10-28 16:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-28 16:43 -------
Confirmed, I think this was caused by one of Mark's constant value patches (but
I don't know for sure).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|4.0.3                       |4.0.3 4.1.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-28 16:43:20
               date|                            |


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (4 preceding siblings ...)
  2005-10-28 16:43 ` pinskia at gcc dot gnu dot org
@ 2005-10-28 21:05 ` jason at gcc dot gnu dot org
  2005-10-28 23:38 ` jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-10-28 21:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-10-28 16:43:20         |2005-10-28 21:05:38
               date|                            |


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (5 preceding siblings ...)
  2005-10-28 21:05 ` jason at gcc dot gnu dot org
@ 2005-10-28 23:38 ` jason at gcc dot gnu dot org
  2005-10-31  6:42 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-10-28 23:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2005-10-28 23:38 -------
Yes, this was introduced by

2005-10-10  Mark Mitchell  <mark@codesourcery.com>

        PR c++/24277
        * pt.c (instantiate_decl): Call finish_static_data_member_decl for
        static data members.

After this change, we call that function twice for static data members, once
when instantiating the class and again when instantiating the member itself. 
As a result, the member gets added to pending_statics twice.

I think we only want to call finish_static_data_member_decl once per static
data member.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jason at gcc dot gnu dot org|mmitchel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (6 preceding siblings ...)
  2005-10-28 23:38 ` jason at gcc dot gnu dot org
@ 2005-10-31  6:42 ` mmitchel at gcc dot gnu dot org
  2005-11-02 18:30 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  6:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2005-10-31 06:42 -------
Showstopper.  Fortunately, I have a patch; just need to check it in.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (7 preceding siblings ...)
  2005-10-31  6:42 ` mmitchel at gcc dot gnu dot org
@ 2005-11-02 18:30 ` mmitchel at gcc dot gnu dot org
  2005-11-02 18:32 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-02 18:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2005-11-02 18:30 -------
Subject: Bug 24569

Author: mmitchel
Date: Wed Nov  2 18:30:26 2005
New Revision: 106392

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106392
Log:
        PR c++/24569
        * pt.c (instantiate_decl): Use cp_finish_decl, not
        finish_static_data_member_decl. 
        PR c++/24569
        * g++.dg/debug/static1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/static1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (8 preceding siblings ...)
  2005-11-02 18:30 ` mmitchel at gcc dot gnu dot org
@ 2005-11-02 18:32 ` mmitchel at gcc dot gnu dot org
  2005-11-02 18:36 ` mmitchel at gcc dot gnu dot org
  2005-11-20  0:43 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-02 18:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mmitchel at gcc dot gnu dot org  2005-11-02 18:32 -------
Subject: Bug 24569

Author: mmitchel
Date: Wed Nov  2 18:32:09 2005
New Revision: 106393

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106393
Log:
        PR c++/24569
        * pt.c (instantiate_decl): Use cp_finish_decl, not
        finish_static_data_member_decl. 
        PR c++/24569
        * g++.dg/debug/static1.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/debug/static1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/pt.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (9 preceding siblings ...)
  2005-11-02 18:32 ` mmitchel at gcc dot gnu dot org
@ 2005-11-02 18:36 ` mmitchel at gcc dot gnu dot org
  2005-11-20  0:43 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-02 18:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from mmitchel at gcc dot gnu dot org  2005-11-02 18:36 -------
Fixed in 4.0.3.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/24569] [4.0/4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966
  2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
                   ` (10 preceding siblings ...)
  2005-11-02 18:36 ` mmitchel at gcc dot gnu dot org
@ 2005-11-20  0:43 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-20  0:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2005-11-20 00:43 -------
*** Bug 24874 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christof at petig-baender
                   |                            |dot de


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


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

end of thread, other threads:[~2005-11-20  0:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 16:18 [Bug debug/24569] New: [4.1 regression] ICE in add_AT_specification, at dwarf2out.c:4966 bangerth at dealii dot org
2005-10-28 16:19 ` [Bug debug/24569] " bangerth at dealii dot org
2005-10-28 16:26 ` bangerth at dealii dot org
2005-10-28 16:34 ` [Bug c++/24569] " pinskia at gcc dot gnu dot org
2005-10-28 16:37 ` [Bug c++/24569] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-10-28 16:43 ` pinskia at gcc dot gnu dot org
2005-10-28 21:05 ` jason at gcc dot gnu dot org
2005-10-28 23:38 ` jason at gcc dot gnu dot org
2005-10-31  6:42 ` mmitchel at gcc dot gnu dot org
2005-11-02 18:30 ` mmitchel at gcc dot gnu dot org
2005-11-02 18:32 ` mmitchel at gcc dot gnu dot org
2005-11-02 18:36 ` mmitchel at gcc dot gnu dot org
2005-11-20  0:43 ` 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).