public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
@ 2003-10-14 0:29 carlo at gcc dot gnu dot org
2003-10-14 0:33 ` [Bug c++/12608] " carlo at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-10-14 0:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
Summary: internal compiler error: tree check: expected class 't',
have 'x' (error_mark) in cp_parser_class_specifier, at
cp/parser.c:11264
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
While investigation my last bug report, I ran into ANOTHER ice...
Reproduce with:
g++-cvs-3.4 -include pppch.h -c -o pppch.h.gch pppch.h
pppch.h is attached.
The full output of the above with '-v' is attached too (its big).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
@ 2003-10-14 0:33 ` carlo at gcc dot gnu dot org
2003-10-14 0:36 ` carlo at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-10-14 0:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
------- Additional Comments From carlo at gcc dot gnu dot org 2003-10-14 00:33 -------
Created an attachment (id=4929)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4929&action=view)
preprocessed header file with stripped line numbers.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
2003-10-14 0:33 ` [Bug c++/12608] " carlo at gcc dot gnu dot org
@ 2003-10-14 0:36 ` carlo at gcc dot gnu dot org
2003-10-14 5:03 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-10-14 0:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
------- Additional Comments From carlo at gcc dot gnu dot org 2003-10-14 00:36 -------
Created an attachment (id=4930)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4930&action=view)
g++ -v output
Interesting info only at beginning and end.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
2003-10-14 0:33 ` [Bug c++/12608] " carlo at gcc dot gnu dot org
2003-10-14 0:36 ` carlo at gcc dot gnu dot org
@ 2003-10-14 5:03 ` pinskia at gcc dot gnu dot org
2003-11-07 18:08 ` carlo at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-14 5:03 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery, ice-on-
| |invalid-code
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-14 05:03 -------
This is not a regression (if the header was just a source file, .cc, GCC still ICE's). Every GCC from
2.91.6 to the mainline, ICE on this test. I have not reduced this problem yet though but it looks
like an easy fix though (I do not have the time to fix it though).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-10-14 5:03 ` pinskia at gcc dot gnu dot org
@ 2003-11-07 18:08 ` carlo at gcc dot gnu dot org
2003-11-07 18:13 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-11-07 18:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
carlo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-07 18:08:29
date| |
------- Additional Comments From carlo at gcc dot gnu dot org 2003-11-07 18:08 -------
Andrew Pinski reproduced this, see comment #3.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-11-07 18:08 ` carlo at gcc dot gnu dot org
@ 2003-11-07 18:13 ` pinskia at gcc dot gnu dot org
2003-12-23 19:30 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-07 18:13 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-11-07 18:13 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 19:30 ` pinskia at gcc dot gnu dot org
2004-04-01 13:44 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-23 19:17 -------
This still ICE's:
pr12608.cc:18044: internal compiler error: tree check: expected class 't', have 'x'
(error_mark) in cp_parser_class_specifier, at cp/parser.c:11540
Please submit a full bug report,with preprocessed source if appropriate.See <URL:http://
gcc.gnu.org/bugs.html> for instructions.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-07 18:08:29 |2003-12-23 19:17:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-12-23 19:30 ` pinskia at gcc dot gnu dot org
@ 2004-04-01 13:44 ` pinskia at gcc dot gnu dot org
2004-07-01 3:51 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-01 13:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-01 13:43 -------
Still happens on the mainline:
pr12608.cc:18044: internal compiler error: tree check: expected class 't', have 'x'
(error_mark) in cp_parser_class_specifier, at cp/parser.c:11854
Please submit a full bug report,with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I might submit a simple fix for this.
if (type != error_mark_node)
type = finish_struct (type, attributes);
if (pop_p)
pop_scope (CP_DECL_CONTEXT (TYPE_MAIN_DECL (type)));
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-12-23 19:17:26 |2004-04-01 13:44:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-04-01 13:44 ` pinskia at gcc dot gnu dot org
@ 2004-07-01 3:51 ` pinskia at gcc dot gnu dot org
2004-08-10 17:12 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-01 3:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-01 03:51 -------
Here is the latested ICE:
pr12608.cc:18044: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in
cp_parser_class_specifier, at cp/parser.c:12368
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-04-01 13:44:06 |2004-07-01 03:51:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-07-01 3:51 ` pinskia at gcc dot gnu dot org
@ 2004-08-10 17:12 ` reichelt at gcc dot gnu dot org
2004-08-10 17:13 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-10 17:12 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |16971
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-08-10 17:12 ` reichelt at gcc dot gnu dot org
@ 2004-08-10 17:13 ` reichelt at gcc dot gnu dot org
2004-08-11 0:44 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-10 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-10 17:13 -------
The failure I get with gcc 3.4.x can be reduced to
===========================
struct A
{
struct B;
};
struct A::B {};
struct A::B {};
===========================
which is tracked in PR 16964.
On mainline I get a different failure which can be reduced to
===========================
namespace N
{
int i;
int i;
}
===========================
bug.cc:8: error: redefinition of `int N::i'
bug.cc:7: error: `int N::i' previously declared here
bug.cc:8: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in cp_parser_init_declarator, at cp/parser.c:10717
Please submit a full bug report, [etc.]
which is also a redefinition problem. I opened a separate PR for this one:
PR 16971
I'd like to keep this PR open until all problems got fixed, because it is
an excellent testcase for finding all sorts of redefinition problems.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
BugsThisDependsOn| |16964
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-08-10 17:13 ` reichelt at gcc dot gnu dot org
@ 2004-08-11 0:44 ` mmitchel at gcc dot gnu dot org
2004-08-11 22:19 ` mmitchel at gcc dot gnu dot org
2004-08-12 15:39 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-11 0:44 UTC (permalink / raw)
To: gcc-bugs
--
Bug 12608 depends on bug 16971, which changed state.
Bug 16971 Summary: [3.5 regression] ICE on duplicate definition
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16971
What |Old Value |New Value
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-08-11 0:44 ` mmitchel at gcc dot gnu dot org
@ 2004-08-11 22:19 ` mmitchel at gcc dot gnu dot org
2004-08-12 15:39 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-11 22:19 UTC (permalink / raw)
To: gcc-bugs
--
Bug 12608 depends on bug 16964, which changed state.
Bug 16964 Summary: [3.4/3.5 regression] ICE in cp_parser_class_specifier due to redefinition
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16964
What |Old Value |New Value
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/12608] internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-08-11 22:19 ` mmitchel at gcc dot gnu dot org
@ 2004-08-12 15:39 ` reichelt at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-12 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-12 15:39 -------
With gcc 3.4.2-20040812 and mainline from the same date, I only get
error messages and no more ICE's.
Thus, the problems got fixed for gcc 3.4.2.
The code still crashes with the 3.3 branch, but since the underlying
bugs are only error-recovery problems they won't get fixed on that
branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12608
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-08-12 15:39 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 0:29 [Bug c++/12608] New: internal compiler error: tree check: expected class 't', have 'x' (error_mark) in cp_parser_class_specifier, at cp/parser.c:11264 carlo at gcc dot gnu dot org
2003-10-14 0:33 ` [Bug c++/12608] " carlo at gcc dot gnu dot org
2003-10-14 0:36 ` carlo at gcc dot gnu dot org
2003-10-14 5:03 ` pinskia at gcc dot gnu dot org
2003-11-07 18:08 ` carlo at gcc dot gnu dot org
2003-11-07 18:13 ` pinskia at gcc dot gnu dot org
2003-12-23 19:30 ` pinskia at gcc dot gnu dot org
2004-04-01 13:44 ` pinskia at gcc dot gnu dot org
2004-07-01 3:51 ` pinskia at gcc dot gnu dot org
2004-08-10 17:12 ` reichelt at gcc dot gnu dot org
2004-08-10 17:13 ` reichelt at gcc dot gnu dot org
2004-08-11 0:44 ` mmitchel at gcc dot gnu dot org
2004-08-11 22:19 ` mmitchel at gcc dot gnu dot org
2004-08-12 15:39 ` 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).