public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34603]  New: [4.1/4.2/4.3 regression] ICE with broken template declaration
@ 2007-12-28  2:36 reichelt at gcc dot gnu dot org
  2007-12-28  2:36 ` [Bug c++/34603] " 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 @ 2007-12-28  2:36 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.0.0:

========================================
template<typename> struct A;

template<typename T> A<T>::A( struct A;
========================================

bug.cc:3: error: template definition of non-template 'struct A<
<template-parameter-1-1> >::A'
bug.cc:3: internal compiler error: in push_class_level_binding, at
cp/name-lookup.c:2659
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with broken template
                    declaration
           Product: gcc
           Version: 4.3.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=34603


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

* [Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
@ 2007-12-28  2:36 ` reichelt at gcc dot gnu dot org
  2008-01-13  2:44 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-12-28  2:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
  2007-12-28  2:36 ` [Bug c++/34603] " reichelt at gcc dot gnu dot org
@ 2008-01-13  2:44 ` bangerth at dealii dot org
  2008-01-24 11:07 ` pcarlini at suse dot de
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2008-01-13  2:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at dealii dot org  2008-01-13 02:25 -------
Confirmed.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-13 02:25:22
               date|                            |


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


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

* [Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
  2007-12-28  2:36 ` [Bug c++/34603] " reichelt at gcc dot gnu dot org
  2008-01-13  2:44 ` bangerth at dealii dot org
@ 2008-01-24 11:07 ` pcarlini at suse dot de
  2008-01-24 18:59 ` andreasmeier80 at gmx dot de
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2008-01-24 11:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pcarlini at suse dot de  2008-01-24 10:58 -------
On it.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-24 11:07 ` pcarlini at suse dot de
@ 2008-01-24 18:59 ` andreasmeier80 at gmx dot de
  2008-01-24 20:10 ` paolo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: andreasmeier80 at gmx dot de @ 2008-01-24 18:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from andreasmeier80 at gmx dot de  2008-01-24 18:42 -------
Patch at http://gcc.gnu.org/ml/gcc-patches/2008-01/msg01138.html


-- 


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


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

* [Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-01-24 18:59 ` andreasmeier80 at gmx dot de
@ 2008-01-24 20:10 ` paolo at gcc dot gnu dot org
  2008-01-24 20:54 ` [Bug c++/34603] [4.1/4.2 " pcarlini at suse dot de
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-01-24 20:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo at gcc dot gnu dot org  2008-01-24 19:54 -------
Subject: Bug 34603

Author: paolo
Date: Thu Jan 24 19:54:11 2008
New Revision: 131804

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131804
Log:
/cp
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * pt.c (push_template_decl_real): Return error_mark_node in case
        of template definition of non-template.

/testsuite
2008-01-24  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34603
        * g++.dg/template/crash77.C: New.

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


-- 


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


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

* [Bug c++/34603] [4.1/4.2 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-01-24 20:10 ` paolo at gcc dot gnu dot org
@ 2008-01-24 20:54 ` pcarlini at suse dot de
  2008-07-04 22:28 ` [Bug c++/34603] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-31 14:58 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2008-01-24 20:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pcarlini at suse dot de  2008-01-24 19:58 -------
Fixed for 4.3.0.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pcarlini at suse dot de     |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.1/4.2/4.3 regression] ICE|[4.1/4.2 regression] ICE
                   |with broken template        |with broken template
                   |declaration                 |declaration


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


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

* [Bug c++/34603] [4.2 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-01-24 20:54 ` [Bug c++/34603] [4.1/4.2 " pcarlini at suse dot de
@ 2008-07-04 22:28 ` jsm28 at gcc dot gnu dot org
  2009-03-31 14:58 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2008-07-04 22:27 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE    |[4.2 regression] ICE with
                   |with broken template        |broken template declaration
                   |declaration                 |
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/34603] [4.2 regression] ICE with broken template declaration
  2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-07-04 22:28 ` [Bug c++/34603] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31 14:58 ` jsm28 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 14:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2009-03-31 14:57 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|                            |4.2.5
      Known to work|                            |4.3.0
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-31 14:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-28  2:36 [Bug c++/34603] New: [4.1/4.2/4.3 regression] ICE with broken template declaration reichelt at gcc dot gnu dot org
2007-12-28  2:36 ` [Bug c++/34603] " reichelt at gcc dot gnu dot org
2008-01-13  2:44 ` bangerth at dealii dot org
2008-01-24 11:07 ` pcarlini at suse dot de
2008-01-24 18:59 ` andreasmeier80 at gmx dot de
2008-01-24 20:10 ` paolo at gcc dot gnu dot org
2008-01-24 20:54 ` [Bug c++/34603] [4.1/4.2 " pcarlini at suse dot de
2008-07-04 22:28 ` [Bug c++/34603] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 14:58 ` 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).