public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12989] New: internal compiler error: tree check: expected field_decl
@ 2003-11-10 8:19 msk at tepkom dot ru
2003-11-10 8:27 ` [Bug c++/12989] [3.4 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: msk at tepkom dot ru @ 2003-11-10 8:19 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12989] [3.4 Regression] internal compiler error: tree check: expected field_decl
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
@ 2003-11-10 8:27 ` pinskia at gcc dot gnu dot org
2003-12-08 22:52 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-10 8:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-10 08:27 -------
Confirmed but minor as this is an error recovery problem.
>From Phil's regression hunter: Search converges between 2002-12-27-trunk (#177) and 2002-12
-28-trunk (#178). aka the new parser caused this one.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-on-
| |invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-11-10 08:27:26
date| |
Summary|internal compiler error: |[3.4 Regression] internal
|tree check: expected |compiler error: tree check:
|field_decl |expected field_decl
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12989
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12989] [3.4 Regression] internal compiler error: tree check: expected field_decl
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
2003-11-10 8:27 ` [Bug c++/12989] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-08 22:52 ` reichelt at gcc dot gnu dot org
2003-12-15 21:20 ` [Bug c++/12989] [3.4 Regression][new parser] " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-08 22:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-12-08 22:52 -------
Here's a similar testcase that crashes since gcc 2.95.x:
==========================================
struct A
{
int foo() { return sizeof(bar); }
int bar();
};
==========================================
With checking enabled I don't even get a decent error message before the
tree check failure.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12989
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12989] [3.4 Regression][new parser] internal compiler error: tree check: expected field_decl
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
2003-11-10 8:27 ` [Bug c++/12989] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-08 22:52 ` reichelt at gcc dot gnu dot org
@ 2003-12-15 21:20 ` mmitchel at gcc dot gnu dot org
2003-12-16 1:15 ` cvs-commit at gcc dot gnu dot org
2003-12-16 1:49 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-12-15 21:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-12-15 21:20 -------
Working on a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mmitchel at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12989
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12989] [3.4 Regression][new parser] internal compiler error: tree check: expected field_decl
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
` (2 preceding siblings ...)
2003-12-15 21:20 ` [Bug c++/12989] [3.4 Regression][new parser] " mmitchel at gcc dot gnu dot org
@ 2003-12-16 1:15 ` cvs-commit at gcc dot gnu dot org
2003-12-16 1:49 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-16 1:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-16 01:15 -------
Subject: Bug 12989
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2003-12-16 01:15:15
Modified files:
gcc/cp : ChangeLog typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/expr: sizeof1.C
Log message:
PR c++/12989
* typeck.c (cxx_sizeof_or_alignof_expr): Robustify.
PR c++/12989
* g++.dg/expr/sizeof1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3804&r2=1.3805
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.512&r2=1.513
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3258&r2=1.3259
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/expr/sizeof1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12989
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12989] [3.4 Regression][new parser] internal compiler error: tree check: expected field_decl
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
` (3 preceding siblings ...)
2003-12-16 1:15 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-16 1:49 ` mmitchel at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-12-16 1:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-12-16 01:25 -------
Fixed in GCC 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12989
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-16 1:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-10 8:19 [Bug c++/12989] New: internal compiler error: tree check: expected field_decl msk at tepkom dot ru
2003-11-10 8:27 ` [Bug c++/12989] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-08 22:52 ` reichelt at gcc dot gnu dot org
2003-12-15 21:20 ` [Bug c++/12989] [3.4 Regression][new parser] " mmitchel at gcc dot gnu dot org
2003-12-16 1:15 ` cvs-commit at gcc dot gnu dot org
2003-12-16 1:49 ` mmitchel 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).