public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28255]  New: [4.1/4.2 regression] ICE with initialization in template
@ 2006-07-04 23:34 reichelt at gcc dot gnu dot org
  2006-07-04 23:36 ` [Bug c++/28255] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-04 23:34 UTC (permalink / raw)
  To: gcc-bugs

The following valid testcase triggers a segfault since GCC 4.1.0:

=========================================
template<int> void foo()
{
  int i = (int){ 0 };
}
=========================================

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

Maybe related to PR28248.


-- 
           Summary: [4.1/4.2 regression] ICE with initialization in template
           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=28255


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with initialization in template
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
@ 2006-07-04 23:36 ` pinskia at gcc dot gnu dot org
  2006-07-04 23:37 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-04 23:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with initialization in template
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
  2006-07-04 23:36 ` [Bug c++/28255] " pinskia at gcc dot gnu dot org
@ 2006-07-04 23:37 ` pinskia at gcc dot gnu dot org
  2006-07-05 11:03 ` rguenth at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-04 23:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.3                       |4.1.2


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with initialization in template
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
  2006-07-04 23:36 ` [Bug c++/28255] " pinskia at gcc dot gnu dot org
  2006-07-04 23:37 ` pinskia at gcc dot gnu dot org
@ 2006-07-05 11:03 ` rguenth at gcc dot gnu dot org
  2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-07-05 11:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-07-05 11:03 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-05 11:03:14
               date|                            |


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with initialization in template
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-07-05 11:03 ` rguenth at gcc dot gnu dot org
@ 2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
  2006-08-09 15:46 ` janis at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  3:05 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=28255


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with initialization in template
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
@ 2006-08-09 15:46 ` janis at gcc dot gnu dot org
  2006-08-18  4:29 ` [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-09 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from janis at gcc dot gnu dot org  2006-08-09 15:46 -------
A regression hunt on powerpc-linux identified this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=102182

    r102182 | giovannibajo | 2005-07-20 01:19:59 +0000 (Wed, 20 Jul 2005)


-- 

janis at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-08-09 15:46 ` janis at gcc dot gnu dot org
@ 2006-08-18  4:29 ` pinskia at gcc dot gnu dot org
  2006-08-22 20:22 ` jason at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18  4:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-08-18 04:29 -------
The type of the CONSTRUCTOR is NULL which is wrong.


-- 


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-08-18  4:29 ` [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates pinskia at gcc dot gnu dot org
@ 2006-08-22 20:22 ` jason at gcc dot gnu dot org
  2006-08-22 20:26 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 20:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2006-08-22 20:22 -------
It seems we've never really handled compound-literals properly within
templates.  This doesn't seem like a regression.


-- 


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-08-22 20:22 ` jason at gcc dot gnu dot org
@ 2006-08-22 20:26 ` pinskia at gcc dot gnu dot org
  2006-10-17  7:17 ` [Bug c++/28255] [4.1/4.2 regression] ICE with (GNU extension) " mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-22 20:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-08-22 20:26 -------
(In reply to comment #4)
> It seems we've never really handled compound-literals properly within
> templates.  This doesn't seem like a regression.

Yes this is PR 28766.

The ICE part is a regression or at least that is what I remember being, in that
we should not change an rejects-valid into an ICE.


-- 


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with (GNU extension) C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-08-22 20:26 ` pinskia at gcc dot gnu dot org
@ 2006-10-17  7:17 ` mmitchel at gcc dot gnu dot org
  2006-10-17  7:49 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17  7:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2006-10-17 07:17 -------
Empirically, this code now compiles, on both 4.1 and on mainline.

Fixed in 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28255] [4.1/4.2 regression] ICE with (GNU extension) C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-10-17  7:17 ` [Bug c++/28255] [4.1/4.2 regression] ICE with (GNU extension) " mmitchel at gcc dot gnu dot org
@ 2006-10-17  7:49 ` pinskia at gcc dot gnu dot org
  2006-10-23 19:12 ` [Bug c++/28255] [4.1 " reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-17  7:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-10-17 07:48 -------
Just a note, this was fixed by the patch which fixed PR 27270 so really this is
not fixed on the 4.1 branch just yet (I tested the 4.1 branch as of now and it
fails there).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |27270


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


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

* [Bug c++/28255] [4.1 regression] ICE with (GNU extension) C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-10-17  7:49 ` pinskia at gcc dot gnu dot org
@ 2006-10-23 19:12 ` reichelt at gcc dot gnu dot org
  2007-02-14  9:20 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:39 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-10-23 19:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2006-10-23 19:11 -------
As Andrew already noted, this is not fixed on the 4.1 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|[4.1/4.2 regression] ICE    |[4.1 regression] ICE with
                   |with (GNU extension) C99    |(GNU extension) C99 compund
                   |compund literal (scalar),   |literal (scalar),
                   |initializer and templates   |initializer and templates


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


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

* [Bug c++/28255] [4.1 regression] ICE with (GNU extension) C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2006-10-23 19:12 ` [Bug c++/28255] [4.1 " reichelt at gcc dot gnu dot org
@ 2007-02-14  9:20 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:39 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:20 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug c++/28255] [4.1 regression] ICE with (GNU extension) C99 compund literal (scalar), initializer and templates
  2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2007-02-14  9:20 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:39 ` jsm28 at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jsm28 at gcc dot gnu dot org  2008-07-04 15:38 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
      Known to fail|4.1.2 4.1.1                 |4.1.2 4.1.1 4.1.3
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

end of thread, other threads:[~2008-07-04 15:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-04 23:34 [Bug c++/28255] New: [4.1/4.2 regression] ICE with initialization in template reichelt at gcc dot gnu dot org
2006-07-04 23:36 ` [Bug c++/28255] " pinskia at gcc dot gnu dot org
2006-07-04 23:37 ` pinskia at gcc dot gnu dot org
2006-07-05 11:03 ` rguenth at gcc dot gnu dot org
2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
2006-08-09 15:46 ` janis at gcc dot gnu dot org
2006-08-18  4:29 ` [Bug c++/28255] [4.1/4.2 regression] ICE with C99 compund literal (scalar), initializer and templates pinskia at gcc dot gnu dot org
2006-08-22 20:22 ` jason at gcc dot gnu dot org
2006-08-22 20:26 ` pinskia at gcc dot gnu dot org
2006-10-17  7:17 ` [Bug c++/28255] [4.1/4.2 regression] ICE with (GNU extension) " mmitchel at gcc dot gnu dot org
2006-10-17  7:49 ` pinskia at gcc dot gnu dot org
2006-10-23 19:12 ` [Bug c++/28255] [4.1 " reichelt at gcc dot gnu dot org
2007-02-14  9:20 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:39 ` jsm28 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).