public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48749] New: internal compiler error: tree check: expected field_decl
@ 2011-04-24 8:23 miles at gnu dot org
2011-04-24 13:18 ` [Bug c++/48749] [4.7 Regression] " paolo.carlini at oracle dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: miles at gnu dot org @ 2011-04-24 8:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Summary: internal compiler error: tree check: expected
field_decl
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: miles@gnu.org
Created attachment 24088
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24088
source code demonstrating bug
Compile the attached code with g++, and:
$ g++-snapshot -c ,barf.i.cc
,barf.i.cc: In member function 'virtual T CylinderMapTex<T>::eval(const
TexCoords&) const':
,barf.i.cc:46:16: internal compiler error: tree check: expected field_decl,
have identifier_node in fixed_type_or_null, at cp/class.c:5885
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
$ g++-snapshot --version
g++ (Debian 20110419-1) 4.7.0 20110419 (experimental) [trunk revision 172699]
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks,
-miles
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
@ 2011-04-24 13:18 ` paolo.carlini at oracle dot com
2011-04-24 13:19 ` paolo.carlini at oracle dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-24 13:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: |[4.7 Regression] internal
|tree check: expected |compiler error: tree check:
|field_decl |expected field_decl
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-24 13:18:04 UTC ---
Looks like a regression in mainline.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
2011-04-24 13:18 ` [Bug c++/48749] [4.7 Regression] " paolo.carlini at oracle dot com
@ 2011-04-24 13:19 ` paolo.carlini at oracle dot com
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-24 13:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.04.24 13:18:23
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
2011-04-24 13:18 ` [Bug c++/48749] [4.7 Regression] " paolo.carlini at oracle dot com
2011-04-24 13:19 ` paolo.carlini at oracle dot com
@ 2011-04-26 9:41 ` rguenth at gcc dot gnu.org
2011-05-04 9:00 ` [Bug c++/48749] [4.6/4.7 " jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 9:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |4.7.0
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.6/4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
` (2 preceding siblings ...)
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
@ 2011-05-04 9:00 ` jakub at gcc dot gnu.org
2011-05-04 18:20 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-04 9:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Target Milestone|4.7.0 |4.6.1
Summary|[4.7 Regression] internal |[4.6/4.7 Regression]
|compiler error: tree check: |internal compiler error:
|expected field_decl |tree check: expected
| |field_decl
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 08:54:07 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171461
The patch has been backported to 4.6 branch as well and if built with
--enable-checking=yes, it ICEs there the same way.
In:
5880 case COMPONENT_REF:
5881 /* If this component is really a base class reference, then the
field
5882 itself isn't definitive. */
5883 if (DECL_FIELD_IS_BASE (TREE_OPERAND (instance, 1)))
5884 return RECUR (TREE_OPERAND (instance, 0));
5885 return RECUR (TREE_OPERAND (instance, 1));
instance is a COMPONENT_REF with type Pos, TREE_OPERAND (instance, 0) is
INDIRECT_REF - *coords and TREE_OPERAND (instance, 1) is not FIELD_DECL, but
IDENTIFIER_NODE pos.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.6/4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
` (3 preceding siblings ...)
2011-05-04 9:00 ` [Bug c++/48749] [4.6/4.7 " jakub at gcc dot gnu.org
@ 2011-05-04 18:20 ` jason at gcc dot gnu.org
2011-05-05 2:22 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-04 18:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.6/4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
` (4 preceding siblings ...)
2011-05-04 18:20 ` jason at gcc dot gnu.org
@ 2011-05-05 2:22 ` jason at gcc dot gnu.org
2011-05-05 2:53 ` jason at gcc dot gnu.org
2011-05-05 15:38 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-05 2:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-05 02:20:17 UTC ---
Author: jason
Date: Thu May 5 02:20:12 2011
New Revision: 173412
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173412
Log:
PR c++/48749
* class.c (resolves_to_fixed_type_p): Don't look closely
in templates.
Added:
trunk/gcc/testsuite/g++.dg/conversion/base1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.6/4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
` (5 preceding siblings ...)
2011-05-05 2:22 ` jason at gcc dot gnu.org
@ 2011-05-05 2:53 ` jason at gcc dot gnu.org
2011-05-05 15:38 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-05 2:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-05 02:51:06 UTC ---
Author: jason
Date: Thu May 5 02:51:01 2011
New Revision: 173414
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173414
Log:
PR c++/48749
* class.c (resolves_to_fixed_type_p): Don't look closely
in templates.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/conversion/base1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/class.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/48749] [4.6/4.7 Regression] internal compiler error: tree check: expected field_decl
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
` (6 preceding siblings ...)
2011-05-05 2:53 ` jason at gcc dot gnu.org
@ 2011-05-05 15:38 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-05 15:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48749
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-05 15:03:34 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-05-05 15:38 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-24 8:23 [Bug c++/48749] New: internal compiler error: tree check: expected field_decl miles at gnu dot org
2011-04-24 13:18 ` [Bug c++/48749] [4.7 Regression] " paolo.carlini at oracle dot com
2011-04-24 13:19 ` paolo.carlini at oracle dot com
2011-04-26 9:41 ` rguenth at gcc dot gnu.org
2011-05-04 9:00 ` [Bug c++/48749] [4.6/4.7 " jakub at gcc dot gnu.org
2011-05-04 18:20 ` jason at gcc dot gnu.org
2011-05-05 2:22 ` jason at gcc dot gnu.org
2011-05-05 2:53 ` jason at gcc dot gnu.org
2011-05-05 15:38 ` jason at gcc dot gnu.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).