public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29573]  New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
@ 2006-10-23 20:18 reichelt at gcc dot gnu dot org
  2006-10-23 20:18 ` [Bug c++/29573] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-10-23 20:18 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers a segfault since GCC 3.4.0:

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

template<typename> struct B : A <sizeof(=)> {};

template<typename> struct C : A <sizeof(=)> {};
==================================================

bug.cc:3: error: parse error in template argument list
bug.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE after parse error in
                    template argument
           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=29573


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

* [Bug c++/29573] [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
@ 2006-10-23 20:18 ` reichelt at gcc dot gnu dot org
  2006-10-26 13:05 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-10-23 20:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/29573] [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
  2006-10-23 20:18 ` [Bug c++/29573] " reichelt at gcc dot gnu dot org
@ 2006-10-26 13:05 ` pinskia at gcc dot gnu dot org
  2006-11-06  6:41 ` patchapp at dberlin dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-26 13:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-10-26 13:05 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-26 13:05:38
               date|                            |


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


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

* [Bug c++/29573] [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
  2006-10-23 20:18 ` [Bug c++/29573] " reichelt at gcc dot gnu dot org
  2006-10-26 13:05 ` pinskia at gcc dot gnu dot org
@ 2006-11-06  6:41 ` patchapp at dberlin dot org
  2006-11-13  3:22 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: patchapp at dberlin dot org @ 2006-11-06  6:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-11-06 06:41 -------
Subject: Bug number PR c++/29573

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01746.html


-- 


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


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

* [Bug c++/29573] [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-11-06  6:41 ` patchapp at dberlin dot org
@ 2006-11-13  3:22 ` mmitchel at gcc dot gnu dot org
  2007-01-11 19:46 ` simartin at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-13  3:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/29573] [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-11-13  3:22 ` mmitchel at gcc dot gnu dot org
@ 2007-01-11 19:46 ` simartin at gcc dot gnu dot org
  2007-01-13 17:08 ` [Bug c++/29573] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-01-11 19:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from simartin at gcc dot gnu dot org  2007-01-11 19:46 -------
Subject: Bug 29573

Author: simartin
Date: Thu Jan 11 19:46:03 2007
New Revision: 120683

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120683
Log:
2007-01-11  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/29573
        * tree.c (cp_tree_equal): Properly handle MODOP_EXPR trees.

Added:
    trunk/gcc/testsuite/g++.dg/template/sizeof-template-argument.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/29573] [4.0/4.1/4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-01-11 19:46 ` simartin at gcc dot gnu dot org
@ 2007-01-13 17:08 ` reichelt at gcc dot gnu dot org
  2007-02-03 20:44 ` gdr at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-01-13 17:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2007-01-13 17:08 -------
*** Bug 28451 has been marked as a duplicate of this bug. ***


-- 


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


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

* [Bug c++/29573] [4.0/4.1/4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-01-13 17:08 ` [Bug c++/29573] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
@ 2007-02-03 20:44 ` gdr at gcc dot gnu dot org
  2007-02-03 20:46 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from gdr at gcc dot gnu dot org  2007-02-03 20:44 -------
won't fix in GCC-4.0.x.  Adjusting milestone.


-- 

gdr at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/29573] [4.0/4.1/4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-02-03 20:44 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:46 ` pinskia at gcc dot gnu dot org
  2007-02-14  9:26 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:46 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=29573


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

* [Bug c++/29573] [4.0/4.1/4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-02-03 20:46 ` pinskia at gcc dot gnu dot org
@ 2007-02-14  9:26 ` mmitchel at gcc dot gnu dot org
  2008-07-04 21:43 ` [Bug c++/29573] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-30 19:41 ` jsm28 at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:26 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=29573


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

* [Bug c++/29573] [4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-02-14  9:26 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 21:43 ` jsm28 at gcc dot gnu dot org
  2009-03-30 19:41 ` jsm28 at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2008-07-04 21:43 -------
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 after
                   |after parse error in        |parse error in template
                   |template argument           |argument
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/29573] [4.2 regression] ICE after parse error in template argument
  2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-07-04 21:43 ` [Bug c++/29573] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 19:41 ` jsm28 at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 19:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2009-03-30 19:41 -------
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.0.4                       |4.0.4 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=29573


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

end of thread, other threads:[~2009-03-30 19:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-23 20:18 [Bug c++/29573] New: [4.0/4.1/4.2/4.3 regression] ICE after parse error in template argument reichelt at gcc dot gnu dot org
2006-10-23 20:18 ` [Bug c++/29573] " reichelt at gcc dot gnu dot org
2006-10-26 13:05 ` pinskia at gcc dot gnu dot org
2006-11-06  6:41 ` patchapp at dberlin dot org
2006-11-13  3:22 ` mmitchel at gcc dot gnu dot org
2007-01-11 19:46 ` simartin at gcc dot gnu dot org
2007-01-13 17:08 ` [Bug c++/29573] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
2007-02-03 20:44 ` gdr at gcc dot gnu dot org
2007-02-03 20:46 ` pinskia at gcc dot gnu dot org
2007-02-14  9:26 ` mmitchel at gcc dot gnu dot org
2008-07-04 21:43 ` [Bug c++/29573] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 19:41 ` 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).