public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2
@ 2005-06-12 13:11 jan at etpmod dot phys dot tue dot nl
  2005-06-12 13:44 ` [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2 pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jan at etpmod dot phys dot tue dot nl @ 2005-06-12 13:11 UTC (permalink / raw)
  To: gcc-bugs

Consider the following reduction from a wxWidgets source module: 
 
const char* GetAssertStackTrace() 
{ 
    struct StackDump 
    { 
        virtual void OnStackFrame() {} 
        const char* GetStackTrace() const; 
    }; 
    StackDump dump; 
    return dump.GetStackTrace(); 
} 
const char* stackTrace = GetAssertStackTrace(); 
 
 
Compiled with today's trunk with debugging enabled (-g), this gives: 
 
jan@nbelvis:~/src/gcc-head $ g++ -g appbase.cpp 
appbase.cpp:12: internal compiler error: tree check: expected class 
?declaration?, have?type? (record_type) in lookup_decl_die, at dwarf2out.c:5457 
 
Strangely enough, almost any change to the code above also fixes this problem: 
removing the class declaration outside the function body, removing the empty 
body of OnStackFrame, making that function non-virtual, adding a virtual 
destructor (as one should), ...

-- 
           Summary: [4.1 regression, ICE on valid] dwarf2
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jan at etpmod dot phys dot tue dot nl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-suse-linux
  GCC host triplet: i686-suse-linux
GCC target triplet: i686-suse-linux


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
@ 2005-06-12 13:44 ` pinskia at gcc dot gnu dot org
  2005-06-16  8:48 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-12 13:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 13:44 -------
Confirmed, this is a recent regression, it worked with "4.1.0 20050530"

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i686-suse-linux             |
   GCC host triplet|i686-suse-linux             |
 GCC target triplet|i686-suse-linux             |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-12 13:44:50
               date|                            |
            Summary|[4.1 regression, ICE on     |[4.1 Regression], ICE on
                   |valid] dwarf2               |valid, dwarf2
   Target Milestone|---                         |4.1.0


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
  2005-06-12 13:44 ` [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2 pinskia at gcc dot gnu dot org
@ 2005-06-16  8:48 ` reichelt at gcc dot gnu dot org
  2005-06-16  9:35 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-16  8:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-16 08:47 -------
Even shorter testcase:

==========================
void foo()
{
    struct A
    {
        virtual ~A() {}
    } a;
}
==========================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
  2005-06-12 13:44 ` [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2 pinskia at gcc dot gnu dot org
  2005-06-16  8:48 ` reichelt at gcc dot gnu dot org
@ 2005-06-16  9:35 ` reichelt at gcc dot gnu dot org
  2005-07-21  7:10 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-16  9:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-16 09:33 -------
Honza, this was caused by your patch
http://gcc.gnu.org/ml/gcc-cvs/2005-06/msg00388.html

Could you please have a look?


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


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (2 preceding siblings ...)
  2005-06-16  9:35 ` reichelt at gcc dot gnu dot org
@ 2005-07-21  7:10 ` pinskia at gcc dot gnu dot org
  2005-07-24 17:33 ` 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  7:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-21 07:09 -------
*** Bug 22583 has been marked as a duplicate of this bug. ***

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


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (3 preceding siblings ...)
  2005-07-21  7:10 ` pinskia at gcc dot gnu dot org
@ 2005-07-24 17:33 ` pinskia at gcc dot gnu dot org
  2005-08-07  6:23 ` dank at kegel dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-24 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-24 17:29 -------
*** Bug 23045 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dank at kegel dot com


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


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

* [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (4 preceding siblings ...)
  2005-07-24 17:33 ` pinskia at gcc dot gnu dot org
@ 2005-08-07  6:23 ` dank at kegel dot com
  2005-08-09  9:41 ` [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2 gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dank at kegel dot com @ 2005-08-07  6:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dank at kegel dot com  2005-08-07 06:23 -------
Still there in gcc-4.1-20050806.

-- 


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


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

* [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (5 preceding siblings ...)
  2005-08-07  6:23 ` dank at kegel dot com
@ 2005-08-09  9:41 ` gdr at gcc dot gnu dot org
  2005-08-18 15:31 ` cvs-commit at gcc dot gnu dot org
  2005-08-18 19:57 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-08-09  9:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2005-08-09 09:41 -------
local classes are pervasive in C++.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


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

* [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (6 preceding siblings ...)
  2005-08-09  9:41 ` [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2 gdr at gcc dot gnu dot org
@ 2005-08-18 15:31 ` cvs-commit at gcc dot gnu dot org
  2005-08-18 19:57 ` pinskia 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-18 15:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-18 15:25 -------
Subject: Bug 22034

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hubicka@gcc.gnu.org	2005-08-18 15:25:07

Modified files:
	gcc            : cgraphunit.c ChangeLog 

Log message:
	PR c++/22034
	* cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
	info only for local statics, not for member variables.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cgraphunit.c.diff?cvsroot=gcc&r1=1.126&r2=1.127
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9771&r2=2.9772



-- 


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


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

* [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2
  2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
                   ` (7 preceding siblings ...)
  2005-08-18 15:31 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-18 19:57 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 19:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-18 19:14 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-08-18 19:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-12 13:11 [Bug c++/22034] New: [4.1 regression, ICE on valid] dwarf2 jan at etpmod dot phys dot tue dot nl
2005-06-12 13:44 ` [Bug c++/22034] [4.1 Regression], ICE on valid, dwarf2 pinskia at gcc dot gnu dot org
2005-06-16  8:48 ` reichelt at gcc dot gnu dot org
2005-06-16  9:35 ` reichelt at gcc dot gnu dot org
2005-07-21  7:10 ` pinskia at gcc dot gnu dot org
2005-07-24 17:33 ` pinskia at gcc dot gnu dot org
2005-08-07  6:23 ` dank at kegel dot com
2005-08-09  9:41 ` [Bug c++/22034] [4.1 Regression] ICE on valid (local class), dwarf2 gdr at gcc dot gnu dot org
2005-08-18 15:31 ` cvs-commit at gcc dot gnu dot org
2005-08-18 19:57 ` 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).