public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26070]  New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
@ 2006-02-02  8:59 reichelt at gcc dot gnu dot org
  2006-02-02  9:06 ` [Bug c++/26070] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-02  8:59 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE in grokdeclarator:

===============================
struct A
{
  virtual static int i;
};
===============================

  bug.cc:3: error: member 'i' cannot be declared both virtual and static
  bug.cc:3: error: 'i' declared as a 'virtual' field
  bug.cc:3: internal compiler error: tree check: expected var_decl or
function_decl or parm_decl, have field_decl in grokdeclarator, at
cp/decl.c:8409

This is a regression from GCC 2.95.3.

Will post patch soon.


-- 
           Summary: [3.4/4.0/4.1/4.2 regression] ICE declaring data member
                    virtual and static
           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=26070


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
@ 2006-02-02  9:06 ` reichelt at gcc dot gnu dot org
  2006-02-02  9:06 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-02  9:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |02/msg00112.html
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-02 09:06:06
               date|                            |


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
  2006-02-02  9:06 ` [Bug c++/26070] " reichelt at gcc dot gnu dot org
@ 2006-02-02  9:06 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:01 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-02  9:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.3


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
  2006-02-02  9:06 ` [Bug c++/26070] " reichelt at gcc dot gnu dot org
  2006-02-02  9:06 ` reichelt at gcc dot gnu dot org
@ 2006-02-08 11:01 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:03 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-08 11:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-02-08 11:00 -------
Subject: Bug 26070

Author: reichelt
Date: Wed Feb  8 11:00:55 2006
New Revision: 110747

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110747
Log:
        PR c++/26070
        * decl.c (grokdeclarator): Clear storage_class together with staticp.

        * g++.dg/other/virtual1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/virtual1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-08 11:01 ` reichelt at gcc dot gnu dot org
@ 2006-02-08 11:03 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:05 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-08 11:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-02-08 11:03 -------
Subject: Bug 26070

Author: reichelt
Date: Wed Feb  8 11:03:09 2006
New Revision: 110748

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110748
Log:
        PR c++/26070
        * decl.c (grokdeclarator): Clear storage_class together with staticp.

        * g++.dg/other/virtual1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/virtual1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-08 11:03 ` reichelt at gcc dot gnu dot org
@ 2006-02-08 11:05 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:08 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-08 11:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-02-08 11:05 -------
Subject: Bug 26070

Author: reichelt
Date: Wed Feb  8 11:05:11 2006
New Revision: 110749

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110749
Log:
        PR c++/26070
        * decl.c (grokdeclarator): Clear storage_class together with staticp.

        * g++.dg/other/virtual1.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/virtual1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-08 11:05 ` reichelt at gcc dot gnu dot org
@ 2006-02-08 11:08 ` reichelt at gcc dot gnu dot org
  2006-02-08 11:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-08 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-02-08 11:08 -------
Subject: Bug 26070

Author: reichelt
Date: Wed Feb  8 11:08:04 2006
New Revision: 110750

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110750
Log:
        PR c++/26070
        * decl.c (grokdeclarator): Clear RID_STATIC together with staticp.

        * g++.dg/other/virtual1.C: New test.

Added:
    branches/gcc-3_4-branch/gcc/testsuite/g++.dg/other/virtual1.C
Modified:
    branches/gcc-3_4-branch/gcc/cp/ChangeLog
    branches/gcc-3_4-branch/gcc/cp/decl.c
    branches/gcc-3_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/26070] [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static
  2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-08 11:08 ` reichelt at gcc dot gnu dot org
@ 2006-02-08 11:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-08 11:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-02-08 11:10 -------
Fixed on mainline, 4.1 branch, 4.0 branch, and 3.4 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.3                       |3.4.6


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


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

end of thread, other threads:[~2006-02-08 11:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-02  8:59 [Bug c++/26070] New: [3.4/4.0/4.1/4.2 regression] ICE declaring data member virtual and static reichelt at gcc dot gnu dot org
2006-02-02  9:06 ` [Bug c++/26070] " reichelt at gcc dot gnu dot org
2006-02-02  9:06 ` reichelt at gcc dot gnu dot org
2006-02-08 11:01 ` reichelt at gcc dot gnu dot org
2006-02-08 11:03 ` reichelt at gcc dot gnu dot org
2006-02-08 11:05 ` reichelt at gcc dot gnu dot org
2006-02-08 11:08 ` reichelt at gcc dot gnu dot org
2006-02-08 11:10 ` 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).