public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum
@ 2011-11-20 22:56 reichelt at gcc dot gnu.org
  2011-11-20 23:01 ` [Bug c++/51248] " reichelt at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-20 22:56 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51248
           Summary: [4.6/4.7 Regression] ICE with pointer to enum
    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 valid code snippet triggers an ICE since GCC 4.6.0:

===================================
enum E { e = sizeof(const E*) };
===================================

bug.cc:1:31: internal compiler error: in finish_enum, at cp/decl.c:12266


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
@ 2011-11-20 23:01 ` reichelt at gcc dot gnu.org
  2011-11-23 13:58 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-20 23:01 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |4.6.3


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
  2011-11-20 23:01 ` [Bug c++/51248] " reichelt at gcc dot gnu.org
@ 2011-11-23 13:58 ` paolo.carlini at oracle dot com
  2011-11-24 15:58 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-23 13:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-11-23
     Ever Confirmed|0                           |1


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
  2011-11-20 23:01 ` [Bug c++/51248] " reichelt at gcc dot gnu.org
  2011-11-23 13:58 ` paolo.carlini at oracle dot com
@ 2011-11-24 15:58 ` jakub at gcc dot gnu.org
  2011-12-06 14:05 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-24 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-24 15:34:32 UTC ---
Introduced with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165935


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-11-24 15:58 ` jakub at gcc dot gnu.org
@ 2011-12-06 14:05 ` rguenth at gcc dot gnu.org
  2011-12-14 16:39 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-06 14:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |4.5.3


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-12-06 14:05 ` rguenth at gcc dot gnu.org
@ 2011-12-14 16:39 ` jason at gcc dot gnu.org
  2011-12-14 22:30 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-14 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-12-14 16:39 ` jason at gcc dot gnu.org
@ 2011-12-14 22:30 ` jason at gcc dot gnu.org
  2011-12-14 22:39 ` jason at gcc dot gnu.org
  2011-12-14 22:43 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-14 22:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-14 22:26:16 UTC ---
Author: jason
Date: Wed Dec 14 22:26:13 2011
New Revision: 182345

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182345
Log:
    PR c++/51248
    * decl.c (copy_type_enum): Also update variants.
    (finish_enum): Allow variants of complete enums.

Added:
    trunk/gcc/testsuite/g++.dg/other/enum2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-12-14 22:30 ` jason at gcc dot gnu.org
@ 2011-12-14 22:39 ` jason at gcc dot gnu.org
  2011-12-14 22:43 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-14 22:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-14 22:33:42 UTC ---
Author: jason
Date: Wed Dec 14 22:33:39 2011
New Revision: 182348

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182348
Log:
    PR c++/51248
    * decl.c (copy_type_enum): Also update variants.
    (finish_enum): Allow variants of complete enums.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/other/enum2.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/decl.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/51248] [4.6/4.7 Regression] ICE with pointer to enum
  2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2011-12-14 22:39 ` jason at gcc dot gnu.org
@ 2011-12-14 22:43 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-14 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-14 22:38:19 UTC ---
Fixed, thanks.


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

end of thread, other threads:[~2011-12-14 22:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-20 22:56 [Bug c++/51248] New: [4.6/4.7 Regression] ICE with pointer to enum reichelt at gcc dot gnu.org
2011-11-20 23:01 ` [Bug c++/51248] " reichelt at gcc dot gnu.org
2011-11-23 13:58 ` paolo.carlini at oracle dot com
2011-11-24 15:58 ` jakub at gcc dot gnu.org
2011-12-06 14:05 ` rguenth at gcc dot gnu.org
2011-12-14 16:39 ` jason at gcc dot gnu.org
2011-12-14 22:30 ` jason at gcc dot gnu.org
2011-12-14 22:39 ` jason at gcc dot gnu.org
2011-12-14 22:43 ` jakub at gcc dot gnu.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).