public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36278]  New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
@ 2008-05-20 13:33 dev-zero at gentoo dot org
  2008-05-20 13:37 ` [Bug c++/36278] [4.2/4.3 " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dev-zero at gentoo dot org @ 2008-05-20 13:33 UTC (permalink / raw)
  To: gcc-bugs

The code snippet goes as follows:

*snip*
namespace Bar
{
        typedef void MyVoid;
}
using Bar::MyVoid;
*snip*

Compiling with "g++-4.3.0 -save-temps -g -Wall -o simple simple.cc -c"
results in this:

simple.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.

Could reproduce this bug on Gentoo 2008.0 with g++ 4.3.0 and 4.2.3 and on
Fedora Core 8.


-- 
           Summary: [4.2 4.3 regression] ICE with typedef void in namespace
                    and using the defined type in another when compiling
                    with "-g"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dev-zero at gentoo dot org


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


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

* [Bug c++/36278] [4.2/4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
@ 2008-05-20 13:37 ` pinskia at gcc dot gnu dot org
  2008-05-20 13:45 ` [Bug c++/36278] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-20 13:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-05-20 13:36 -------
Works for me with the trunk on both i686-linux-gnu and i386-apple-darwin.  Also
works with "4.3.0 20070729" and 4.3.0 20080128 on i386-apple-darwin.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2 4.3 regression] ICE    |[4.2/4.3 regression] ICE
                   |with typedef void in        |with typedef void in
                   |namespace and using the     |namespace and using the
                   |defined type in another when|defined type in another when
                   |compiling with "-g"         |compiling with "-g"


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


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

* [Bug c++/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
  2008-05-20 13:37 ` [Bug c++/36278] [4.2/4.3 " pinskia at gcc dot gnu dot org
@ 2008-05-20 13:45 ` rguenth at gcc dot gnu dot org
  2008-05-28 22:11 ` [Bug middle-end/36278] " rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-20 13:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-05-20 13:44 -------
Confirmed.  -g is the key.

Program received signal SIGSEGV, Segmentation fault.
0x000000000081eed9 in prune_unused_types_mark (die=0x0, dokids=1)
    at /space/rguenther/src/svn/trunk/gcc/dwarf2out.c:14913
14913     if (die->die_mark == 0)


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.2.3 4.3.0 4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-20 13:44:25
               date|                            |
            Summary|[4.2/4.3 regression] ICE    |[4.2/4.3/4.4 Regression] ICE
                   |with typedef void in        |with typedef void in
                   |namespace and using the     |namespace and using the
                   |defined type in another when|defined type in another when
                   |compiling with "-g"         |compiling with "-g"
   Target Milestone|---                         |4.2.5


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


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

* [Bug middle-end/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
  2008-05-20 13:37 ` [Bug c++/36278] [4.2/4.3 " pinskia at gcc dot gnu dot org
  2008-05-20 13:45 ` [Bug c++/36278] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-05-28 22:11 ` rguenth at gcc dot gnu dot org
  2008-07-30 11:42 ` [Bug debug/36278] " jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-28 22:11 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end
           Priority|P3                          |P2


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


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

* [Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
                   ` (2 preceding siblings ...)
  2008-05-28 22:11 ` [Bug middle-end/36278] " rguenth at gcc dot gnu dot org
@ 2008-07-30 11:42 ` jakub at gcc dot gnu dot org
  2008-07-31  8:04 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-30 11:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
          Component|middle-end                  |debug
   Last reconfirmed|2008-05-20 13:44:25         |2008-07-30 11:41:05
               date|                            |


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


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

* [Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
                   ` (3 preceding siblings ...)
  2008-07-30 11:42 ` [Bug debug/36278] " jakub at gcc dot gnu dot org
@ 2008-07-31  8:04 ` jakub at gcc dot gnu dot org
  2008-07-31  8:51 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-31  8:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-07-31 08:02 -------
Subject: Bug 36278

Author: jakub
Date: Thu Jul 31 08:01:25 2008
New Revision: 138361

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138361
Log:
        PR debug/36278
        * dwarf2out.c (get_context_die): New function.
        (force_decl_die, force_type_die): Use it.
        (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
        returns NULL, force generation of DW_TAG_typedef and put that into
        DW_AT_import.

        * g++.dg/debug/namespace2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/namespace2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
                   ` (4 preceding siblings ...)
  2008-07-31  8:04 ` jakub at gcc dot gnu dot org
@ 2008-07-31  8:51 ` jakub at gcc dot gnu dot org
  2008-07-31  8:53 ` jakub at gcc dot gnu dot org
  2009-04-29 15:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-31  8:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-07-31 08:49 -------
Subject: Bug 36278

Author: jakub
Date: Thu Jul 31 08:48:26 2008
New Revision: 138369

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138369
Log:
        PR debug/36278
        * dwarf2out.c (get_context_die): New function.
        (force_decl_die, force_type_die): Use it.
        (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
        returns NULL, force generation of DW_TAG_typedef and put that into
        DW_AT_import.

        * g++.dg/debug/namespace2.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/namespace2.C
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/dwarf2out.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
                   ` (5 preceding siblings ...)
  2008-07-31  8:51 ` jakub at gcc dot gnu dot org
@ 2008-07-31  8:53 ` jakub at gcc dot gnu dot org
  2009-04-29 15:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-31  8:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-07-31 08:51 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug debug/36278] [4.2/4.3/4.4 Regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g"
  2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
                   ` (6 preceding siblings ...)
  2008-07-31  8:53 ` jakub at gcc dot gnu dot org
@ 2009-04-29 15:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.5                       |4.3.2


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


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

end of thread, other threads:[~2009-04-29 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-20 13:33 [Bug c++/36278] New: [4.2 4.3 regression] ICE with typedef void in namespace and using the defined type in another when compiling with "-g" dev-zero at gentoo dot org
2008-05-20 13:37 ` [Bug c++/36278] [4.2/4.3 " pinskia at gcc dot gnu dot org
2008-05-20 13:45 ` [Bug c++/36278] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-05-28 22:11 ` [Bug middle-end/36278] " rguenth at gcc dot gnu dot org
2008-07-30 11:42 ` [Bug debug/36278] " jakub at gcc dot gnu dot org
2008-07-31  8:04 ` jakub at gcc dot gnu dot org
2008-07-31  8:51 ` jakub at gcc dot gnu dot org
2008-07-31  8:53 ` jakub at gcc dot gnu dot org
2009-04-29 15:14 ` 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).