public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29730]  New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
@ 2006-11-05 20:35 reichelt at gcc dot gnu dot org
  2006-11-05 23:20 ` [Bug c++/29730] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

bug.cc:3: internal compiler error: in grokfield, at cp/decl2.c:846
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration
                    of template member
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-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=29730


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

* [Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
@ 2006-11-05 23:20 ` reichelt at gcc dot gnu dot org
  2006-11-12 20:38 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:20 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=29730


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

* [Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
  2006-11-05 23:20 ` [Bug c++/29730] " reichelt at gcc dot gnu dot org
@ 2006-11-12 20:38 ` mmitchel at gcc dot gnu dot org
  2006-11-26  0:20 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-11-12 20:38 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=29730


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

* [Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
  2006-11-05 23:20 ` [Bug c++/29730] " reichelt at gcc dot gnu dot org
  2006-11-12 20:38 ` mmitchel at gcc dot gnu dot org
@ 2006-11-26  0:20 ` pinskia at gcc dot gnu dot org
  2006-12-06 22:55 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-11-26 00:20 -------
Confirmed.


-- 

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-11-26 00:20:39
               date|                            |


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


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

* [Bug c++/29730] [4.0/4.1/4.2 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-12-06 22:55 ` mmitchel at gcc dot gnu dot org
@ 2006-12-06 22:55 ` mmitchel at gcc dot gnu dot org
  2006-12-07 17:50 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-06 22:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-12-06 22:55 -------
Fixed in 4.3.0.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
            Summary|[4.0/4.1/4.2/4.3 regression]|[4.0/4.1/4.2 regression] ICE
                   |ICE on invalid declaration  |on invalid declaration of
                   |of template member          |template member


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


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

* [Bug c++/29730] [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-11-26  0:20 ` pinskia at gcc dot gnu dot org
@ 2006-12-06 22:55 ` mmitchel at gcc dot gnu dot org
  2006-12-06 22:55 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-06 22:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-12-06 22:55 -------
Subject: Bug 29730

Author: mmitchel
Date: Wed Dec  6 22:54:51 2006
New Revision: 119601

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119601
Log:
        PR c++/29730
        * parser.c (cp_parser_init_declarator): Reject initialization of
        functions.
        PR c++/29730
        * g++.dg/template/crash64.C: New test.
        * g++.dg/parse/crash27.C: Adjust error markers.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash64.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/crash27.C


-- 


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


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

* [Bug c++/29730] [4.0/4.1/4.2 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-12-06 22:55 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-12-07 17:50 ` mmitchel at gcc dot gnu dot org
  2006-12-07 18:09 ` [Bug c++/29730] [4.0 " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-07 17:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-12-07 17:49 -------
Subject: Bug 29730

Author: mmitchel
Date: Thu Dec  7 17:49:32 2006
New Revision: 119631

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119631
Log:
        PR c++/29730
        * parser.c (cp_parser_init_declarator): Reject initialization of
        functions.

        PR c++/29730
        * g++.dg/template/crash64.C: New test.
        * g++.dg/parse/crash27.C: Adjust error markers.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash64.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/crash27.C


-- 


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


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

* [Bug c++/29730] [4.0/4.1/4.2 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-12-07 18:09 ` [Bug c++/29730] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-12-07 18:09 ` mmitchel at gcc dot gnu dot org
  2007-02-03 20:50 ` [Bug c++/29730] [4.0 " gdr at gcc dot gnu dot org
  2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-07 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-12-07 18:08 -------
Subject: Bug 29730

Author: mmitchel
Date: Thu Dec  7 18:08:42 2006
New Revision: 119632

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119632
Log:
        PR c++/29730
        * parser.c (cp_parser_init_declarator): Reject initialization of
        functions.
        PR c++/29730
        * g++.dg/template/crash64.C: New test.
        * g++.dg/parse/crash27.C: Adjust error markers.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash64.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/parser.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/parse/crash27.C


-- 


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


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

* [Bug c++/29730] [4.0 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-12-07 17:50 ` mmitchel at gcc dot gnu dot org
@ 2006-12-07 18:09 ` mmitchel at gcc dot gnu dot org
  2006-12-07 18:09 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-07 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2006-12-07 18:09 -------
Fixed in 4.1.2, 4.2.0.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.0/4.1/4.2 regression] ICE|[4.0 regression] ICE on
                   |on invalid declaration of   |invalid declaration of
                   |template member             |template member


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


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

* [Bug c++/29730] [4.0 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-12-07 18:09 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2007-02-03 20:50 ` gdr at gcc dot gnu dot org
  2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from gdr at gcc dot gnu dot org  2007-02-03 20:50 -------
Fixed in GCC-4.1.2.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

* [Bug c++/29730] [4.0 regression] ICE on invalid declaration of template member
  2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-02-03 20:50 ` [Bug c++/29730] [4.0 " gdr at gcc dot gnu dot org
@ 2007-03-10 21:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-03-10 21:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2007-03-10 21:18 -------
*** Bug 31026 has been marked as a duplicate of this bug. ***


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |axel-freyn at gmx dot de


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


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

end of thread, other threads:[~2007-03-10 21:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-05 20:35 [Bug c++/29730] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid declaration of template member reichelt at gcc dot gnu dot org
2006-11-05 23:20 ` [Bug c++/29730] " reichelt at gcc dot gnu dot org
2006-11-12 20:38 ` mmitchel at gcc dot gnu dot org
2006-11-26  0:20 ` pinskia at gcc dot gnu dot org
2006-12-06 22:55 ` mmitchel at gcc dot gnu dot org
2006-12-06 22:55 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-12-07 17:50 ` mmitchel at gcc dot gnu dot org
2006-12-07 18:09 ` [Bug c++/29730] [4.0 " mmitchel at gcc dot gnu dot org
2006-12-07 18:09 ` [Bug c++/29730] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2007-02-03 20:50 ` [Bug c++/29730] [4.0 " gdr at gcc dot gnu dot org
2007-03-10 21:18 ` reichelt 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).