public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union
@ 2011-11-19 21:13 reichelt at gcc dot gnu.org
  2011-12-05 14:15 ` [Bug c++/51228] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 21:13 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51228
           Summary: [4.5/4.6/4.7 Regression] ICE with transparent union
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following code snippet triggers an ICE since GCC 4.5.0:

==========================================================
typedef union {} U __attribute__((transparent_union));

void foo(U u) {}
==========================================================

bug.cc: In function 'void foo(U)':
bug.cc:3:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


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

* [Bug c++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
@ 2011-12-05 14:15 ` rguenth at gcc dot gnu.org
  2011-12-06 14:04 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-05 14:15 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.4


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

* [Bug c++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
  2011-12-05 14:15 ` [Bug c++/51228] " rguenth at gcc dot gnu.org
@ 2011-12-06 14:04 ` rguenth at gcc dot gnu.org
  2011-12-14 22:58 ` jason at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-06 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug c++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
  2011-12-05 14:15 ` [Bug c++/51228] " rguenth at gcc dot gnu.org
  2011-12-06 14:04 ` rguenth at gcc dot gnu.org
@ 2011-12-14 22:58 ` jason at gcc dot gnu.org
  2011-12-17 20:50 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-14 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-12-14
                 CC|                            |jason at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug c++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-14 22:58 ` jason at gcc dot gnu.org
@ 2011-12-17 20:50 ` jason at gcc dot gnu.org
  2011-12-19 20:12 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-17 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-17 20:39:25 UTC ---
Created attachment 26123
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26123
Patch

Patch from http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01142.html waiting for
approval.


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

* [Bug c++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-12-17 20:50 ` jason at gcc dot gnu.org
@ 2011-12-19 20:12 ` jason at gcc dot gnu.org
  2011-12-19 21:52 ` [Bug c++/51228] [4.5/4.6 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-19 20:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-19 20:10:32 UTC ---
Author: jason
Date: Mon Dec 19 20:10:25 2011
New Revision: 182494

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182494
Log:
    PR c++/51228
    * c-common.c (handle_transparent_union_attribute): Check the first
    field if the type is complete.

Added:
    trunk/gcc/testsuite/c-c++-common/transparent-union-1.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51228] [4.5/4.6 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-12-19 20:12 ` jason at gcc dot gnu.org
@ 2011-12-19 21:52 ` jakub at gcc dot gnu.org
  2012-06-04 21:45 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-19 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
            Summary|[4.5/4.6/4.7 Regression]    |[4.5/4.6 Regression] ICE
                   |ICE with transparent union  |with transparent union

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-19 21:39:15 UTC ---
Fixed on the trunk.


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

* [Bug c++/51228] [4.5/4.6 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-12-19 21:52 ` [Bug c++/51228] [4.5/4.6 " jakub at gcc dot gnu.org
@ 2012-06-04 21:45 ` paolo.carlini at oracle dot com
  2012-07-02 12:05 ` rguenth at gcc dot gnu.org
  2012-10-09 15:53 ` [Bug c++/51228] [4.6 " paolo.carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-06-04 21:45 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ettl.martin at gmx dot de

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-06-04 21:44:22 UTC ---
*** Bug 53577 has been marked as a duplicate of this bug. ***


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

* [Bug c++/51228] [4.5/4.6 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-06-04 21:45 ` paolo.carlini at oracle dot com
@ 2012-07-02 12:05 ` rguenth at gcc dot gnu.org
  2012-10-09 15:53 ` [Bug c++/51228] [4.6 " paolo.carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 12:05 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.4                       |4.6.4

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 12:04:12 UTC ---
The 4.5 branch is being closed, adjusting target milestone.


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

* [Bug c++/51228] [4.6 Regression] ICE with transparent union
  2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2012-07-02 12:05 ` rguenth at gcc dot gnu.org
@ 2012-10-09 15:53 ` paolo.carlini at oracle dot com
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-09 15:53 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.0
         Resolution|                            |FIXED

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-09 15:52:41 UTC ---
I propose to declare this fixed in 4.7.0. Otherwise please re-open, thanks.


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

end of thread, other threads:[~2012-10-09 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-19 21:13 [Bug c++/51228] New: [4.5/4.6/4.7 Regression] ICE with transparent union reichelt at gcc dot gnu.org
2011-12-05 14:15 ` [Bug c++/51228] " rguenth at gcc dot gnu.org
2011-12-06 14:04 ` rguenth at gcc dot gnu.org
2011-12-14 22:58 ` jason at gcc dot gnu.org
2011-12-17 20:50 ` jason at gcc dot gnu.org
2011-12-19 20:12 ` jason at gcc dot gnu.org
2011-12-19 21:52 ` [Bug c++/51228] [4.5/4.6 " jakub at gcc dot gnu.org
2012-06-04 21:45 ` paolo.carlini at oracle dot com
2012-07-02 12:05 ` rguenth at gcc dot gnu.org
2012-10-09 15:53 ` [Bug c++/51228] [4.6 " paolo.carlini at oracle dot com

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).