public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28420]  New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
@ 2006-07-18 10:42 reichelt at gcc dot gnu dot org
  2006-07-22 15:07 ` [Bug c++/28420] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-18 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

int i = sizeof(A<typeid>);
========================================

bug.cc:3: error: `typeid' operator cannot appear in a constant-expression
bug.cc:3: error: template argument 1 is invalid
*** glibc detected *** double free or corruption (out): 0x00000000009e51c0 ***
bug.cc:3: internal compiler error: Aborted
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with "typeid" as template
                    parameter
           Product: gcc
           Version: 4.2.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=28420


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

* [Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
@ 2006-07-22 15:07 ` pinskia at gcc dot gnu dot org
  2006-07-31 23:30 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-22 15:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
  2006-07-22 15:07 ` [Bug c++/28420] " pinskia at gcc dot gnu dot org
@ 2006-07-31 23:30 ` mmitchel at gcc dot gnu dot org
  2006-08-19  7:31 ` patchapp at dberlin dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:30 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=28420


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

* [Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
  2006-07-22 15:07 ` [Bug c++/28420] " pinskia at gcc dot gnu dot org
  2006-07-31 23:30 ` mmitchel at gcc dot gnu dot org
@ 2006-08-19  7:31 ` patchapp at dberlin dot org
  2006-08-22 18:52 ` jason at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2006-08-19  7:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from patchapp at dberlin dot org  2006-08-19 07:31 -------
Subject: Bug number PR c++/28420

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-08/msg00700.html


-- 


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


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

* [Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-19  7:31 ` patchapp at dberlin dot org
@ 2006-08-22 18:52 ` jason at gcc dot gnu dot org
  2006-09-03  5:37 ` [Bug c++/28420] [4.0/4.1 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 18:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jason at gcc dot gnu dot org  2006-08-22 18:51 -------
Subject: Bug 28420

Author: jason
Date: Tue Aug 22 18:51:40 2006
New Revision: 116330

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116330
Log:
        PR c++/28420
        * parser.c (cp_parser_postfix_expression): Make sure that the
        saved value for parser->type_definition_forbidden_message is
        restored before returning to avoid an invalid free().

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


-- 


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


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

* [Bug c++/28420] [4.0/4.1 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-08-22 18:52 ` jason at gcc dot gnu dot org
@ 2006-09-03  5:37 ` pinskia at gcc dot gnu dot org
  2007-02-03 18:03 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03  5:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-03 05:37:25
               date|                            |


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


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

* [Bug c++/28420] [4.0/4.1 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-09-03  5:37 ` [Bug c++/28420] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2007-02-03 18:03 ` gdr at gcc dot gnu dot org
  2007-02-03 20:50 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 18:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from gdr at gcc dot gnu dot org  2007-02-03 18:02 -------
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=28420


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

* [Bug c++/28420] [4.0/4.1 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-03 18:03 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:50 ` pinskia at gcc dot gnu dot org
  2007-02-14  9:29 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:44 ` [Bug c++/28420] [4.1 " jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:50 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=28420


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

* [Bug c++/28420] [4.0/4.1 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-02-03 20:50 ` pinskia at gcc dot gnu dot org
@ 2007-02-14  9:29 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:44 ` [Bug c++/28420] [4.1 " jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:29 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=28420


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

* [Bug c++/28420] [4.1 regression] ICE with "typeid" as template parameter
  2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-02-14  9:29 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:44 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:44 UTC (permalink / raw)
  To: gcc-bugs



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


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.0.4                       |4.0.4 4.1.3
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 10:42 [Bug c++/28420] New: [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter reichelt at gcc dot gnu dot org
2006-07-22 15:07 ` [Bug c++/28420] " pinskia at gcc dot gnu dot org
2006-07-31 23:30 ` mmitchel at gcc dot gnu dot org
2006-08-19  7:31 ` patchapp at dberlin dot org
2006-08-22 18:52 ` jason at gcc dot gnu dot org
2006-09-03  5:37 ` [Bug c++/28420] [4.0/4.1 " pinskia at gcc dot gnu dot org
2007-02-03 18:03 ` gdr at gcc dot gnu dot org
2007-02-03 20:50 ` pinskia at gcc dot gnu dot org
2007-02-14  9:29 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:44 ` [Bug c++/28420] [4.1 " 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).