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

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).