public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27491]  New: [4.1/4.2 regression] ICE on variable initialization
@ 2006-05-08 14:14 reichelt at gcc dot gnu dot org
  2006-05-08 15:19 ` [Bug c++/27491] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-08 14:14 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet causes an ICE (segfault) since GCC 4.1.0:

========================
int i = (int){i};
========================


-- 
           Summary: [4.1/4.2 regression] ICE on variable initialization
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
@ 2006-05-08 15:19 ` pinskia at gcc dot gnu dot org
  2006-05-08 15:22 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08 15:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-08 15:19 -------
Confirmed, I know I saw this before.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-08 15:19:12
               date|                            |
   Target Milestone|---                         |4.1.1


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
  2006-05-08 15:19 ` [Bug c++/27491] " pinskia at gcc dot gnu dot org
@ 2006-05-08 15:22 ` reichelt at gcc dot gnu dot org
  2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-08 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-05-08 15:22 -------
> Confirmed, I know I saw this before.

You're probably thinking of PR 23172.


-- 


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
  2006-05-08 15:19 ` [Bug c++/27491] " pinskia at gcc dot gnu dot org
  2006-05-08 15:22 ` reichelt at gcc dot gnu dot org
@ 2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
  2006-05-16 13:33 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-14 22:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
@ 2006-05-16 13:33 ` jakub at gcc dot gnu dot org
  2006-05-17  8:44 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-16 13:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-05-16 13:33 -------
Testing a patch.


-- 

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
   Last reconfirmed|2006-05-08 15:19:12         |2006-05-16 13:33:03
               date|                            |


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-16 13:33 ` jakub at gcc dot gnu dot org
@ 2006-05-17  8:44 ` jakub at gcc dot gnu dot org
  2006-05-17  8:45 ` jakub at gcc dot gnu dot org
  2006-05-17  8:45 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-17  8:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-05-17 08:43 -------
Subject: Bug 27491

Author: jakub
Date: Wed May 17 08:42:47 2006
New Revision: 113847

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113847
Log:
        PR c++/27491
        * semantics.c (finish_compound_literal): Only set TREE_HAS_CONSTRUCTOR
        on CONSTRUCTORs.

        * g++.dg/init/brace5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/init/brace5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-17  8:44 ` jakub at gcc dot gnu dot org
@ 2006-05-17  8:45 ` jakub at gcc dot gnu dot org
  2006-05-17  8:45 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-17  8:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2006-05-17 08:45 -------
Fixed in SVN.


-- 

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=27491


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

* [Bug c++/27491] [4.1/4.2 regression] ICE on variable initialization
  2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-05-17  8:45 ` jakub at gcc dot gnu dot org
@ 2006-05-17  8:45 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-17  8:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2006-05-17 08:44 -------
Subject: Bug 27491

Author: jakub
Date: Wed May 17 08:44:36 2006
New Revision: 113848

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113848
Log:
        PR c++/27491
        * semantics.c (finish_compound_literal): Only set TREE_HAS_CONSTRUCTOR
        on CONSTRUCTORs.

        * g++.dg/init/brace5.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/brace5.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/semantics.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2006-05-17  8:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 14:14 [Bug c++/27491] New: [4.1/4.2 regression] ICE on variable initialization reichelt at gcc dot gnu dot org
2006-05-08 15:19 ` [Bug c++/27491] " pinskia at gcc dot gnu dot org
2006-05-08 15:22 ` reichelt at gcc dot gnu dot org
2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
2006-05-16 13:33 ` jakub at gcc dot gnu dot org
2006-05-17  8:44 ` jakub at gcc dot gnu dot org
2006-05-17  8:45 ` jakub at gcc dot gnu dot org
2006-05-17  8:45 ` jakub 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).