This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12989] New: internal compiler error: tree check: expected field_decl


GCC version had been updated from CVS about 3-4 hours ago

----------------------------------
g++ -c test.c -o test.o
test.c:4: error: ISO C++ forbids declaration of `Hash' with no type
test.c: In member function `virtual int Hash1::_sizeof() const':
test.c:3: error: expected `)'
test.c:3: internal compiler error: tree check: expected field_decl, have
baselink in cxx_sizeof_or_alignof_expr, at cp/typeck.c:1236
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

test.c:
----------------------------------------
class Hash1
{
  virtual int _sizeof (void) const { return sizeof (Hash const); };
  Hash ();
};

----------------------------------------

-- 
           Summary: internal compiler error: tree check: expected field_decl
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: msk at tepkom dot ru
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]