public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37650]  New: [4.2/4.3/4.4 regression] ICE with broken default template parameter
@ 2008-09-25  7:14 reichelt at gcc dot gnu dot org
  2008-09-25  7:15 ` [Bug c++/37650] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  7:14 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 3.4.0:

=========================================================
template<int> struct A {};

template<typename = class A<0>: > struct B {};
=========================================================

bug.cc:3: error: an explicit specialization must be preceded by 'template <>'
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with broken default
                    template parameter
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=37650


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

* [Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
@ 2008-09-25  7:15 ` reichelt at gcc dot gnu dot org
  2008-09-28 19:45 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  7:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
  2008-09-25  7:15 ` [Bug c++/37650] " reichelt at gcc dot gnu dot org
@ 2008-09-28 19:45 ` pinskia at gcc dot gnu dot org
  2008-10-10  9:16 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-28 19:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-28 19:43 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.0.1 4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-28 19:43:57
               date|                            |


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


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

* [Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
  2008-09-25  7:15 ` [Bug c++/37650] " reichelt at gcc dot gnu dot org
  2008-09-28 19:45 ` pinskia at gcc dot gnu dot org
@ 2008-10-10  9:16 ` rguenth at gcc dot gnu dot org
  2008-10-12 16:18 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-10-10  9:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |3.3.6
           Priority|P3                          |P4


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


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

* [Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-10-10  9:16 ` rguenth at gcc dot gnu dot org
@ 2008-10-12 16:18 ` paolo dot carlini at oracle dot com
  2008-10-14 17:54 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-10-12 16:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2008-10-12 16:16 -------
On it.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-10-12 16:18 ` paolo dot carlini at oracle dot com
@ 2008-10-14 17:54 ` paolo at gcc dot gnu dot org
  2008-10-14 17:55 ` [Bug c++/37650] [4.2/4.3 " paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-10-14 17:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2008-10-14 17:53 -------
Subject: Bug 37650

Author: paolo
Date: Tue Oct 14 17:51:55 2008
New Revision: 141115

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141115
Log:
/cp
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37650
        * pt.c (push_template_decl_real): Check that current_template_parms
        is not null.
        (process_partial_specialization): Assert current_template_parms not
        null.

/testsuite
2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/37650
        * g++.dg/template/crash83.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash83.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37650] [4.2/4.3 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-10-14 17:54 ` paolo at gcc dot gnu dot org
@ 2008-10-14 17:55 ` paolo dot carlini at oracle dot com
  2009-03-31 20:58 ` [Bug c++/37650] [4.3 " jsm28 at gcc dot gnu dot org
  2009-04-22 15:29 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-10-14 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2008-10-14 17:53 -------
Fixed for 4.4.0.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with broken default template|with broken default template
                   |parameter                   |parameter


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


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

* [Bug c++/37650] [4.3 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-10-14 17:55 ` [Bug c++/37650] [4.2/4.3 " paolo dot carlini at oracle dot com
@ 2009-03-31 20:58 ` jsm28 at gcc dot gnu dot org
  2009-04-22 15:29 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2009-03-31 20:58 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3 regression] ICE    |[4.3 regression] ICE with
                   |with broken default template|broken default template
                   |parameter                   |parameter
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c++/37650] [4.3 regression] ICE with broken default template parameter
  2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-03-31 20:58 ` [Bug c++/37650] [4.3 " jsm28 at gcc dot gnu dot org
@ 2009-04-22 15:29 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-22 15:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-04-22 15:29 -------
WONTFIX for 4.3.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.0.1 4.4.0                 |4.0.1 4.3.3
      Known to work|3.3.6                       |3.3.6 4.4.0
         Resolution|                            |FIXED
   Target Milestone|4.3.4                       |4.4.0


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


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25  7:14 [Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter reichelt at gcc dot gnu dot org
2008-09-25  7:15 ` [Bug c++/37650] " reichelt at gcc dot gnu dot org
2008-09-28 19:45 ` pinskia at gcc dot gnu dot org
2008-10-10  9:16 ` rguenth at gcc dot gnu dot org
2008-10-12 16:18 ` paolo dot carlini at oracle dot com
2008-10-14 17:54 ` paolo at gcc dot gnu dot org
2008-10-14 17:55 ` [Bug c++/37650] [4.2/4.3 " paolo dot carlini at oracle dot com
2009-03-31 20:58 ` [Bug c++/37650] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:29 ` rguenth 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).