public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
@ 2012-06-30 6:33 ai.azuma at gmail dot com
2012-06-30 6:34 ` [Bug c++/53816] " ai.azuma at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: ai.azuma at gmail dot com @ 2012-06-30 6:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
Bug #: 53816
Summary: internal compiler error: tree check: expected
field_decl, have identifier_node in
fixed_type_or_null, at cp/class.c:6419, with
-std=c++11 option
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ai.azuma@gmail.com
Created attachment 27721
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27721
preprocessed source file
The attached code looks innocent but causes ICE with GCC 4.8.0 20120624
(experimental) and `-std=c++11' option, although it doesn't rely on any C++11
feature. And without `-std=c++11' option, it successfully compiles.
Note that the attached code successfully compiles with GCC 4.6.4 20120622
(prerelease) and 4.7.2 20120623 (prerelease), regardless of whether
`-std=c++0x' option is used.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
@ 2012-06-30 6:34 ` ai.azuma at gmail dot com
2012-07-02 8:56 ` [Bug c++/53816] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ai.azuma at gmail dot com @ 2012-06-30 6:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
--- Comment #1 from Ai Azuma <ai.azuma at gmail dot com> 2012-06-30 06:34:40 UTC ---
Created attachment 27722
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27722
Output of -v option
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
2012-06-30 6:34 ` [Bug c++/53816] " ai.azuma at gmail dot com
@ 2012-07-02 8:56 ` rguenth at gcc dot gnu.org
2012-07-02 9:47 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 8:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
Known to work|4.7.2 |
Target Milestone|--- |4.7.2
Summary|internal compiler error: |[4.7/4.8 Regression]
|tree check: expected |internal compiler error:
|field_decl, have |tree check: expected
|identifier_node in |field_decl, have
|fixed_type_or_null, at |identifier_node in
|cp/class.c:6419, with |fixed_type_or_null, at
|-std=c++11 option |cp/class.c:6419, with
| |-std=c++11 option
Known to fail| |4.7.2
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 08:56:09 UTC ---
Also fails on the 4.7 branch - but needs enabled checking. Works on the 4.6
branch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
2012-06-30 6:34 ` [Bug c++/53816] " ai.azuma at gmail dot com
2012-07-02 8:56 ` [Bug c++/53816] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-07-02 9:47 ` jakub at gcc dot gnu.org
2012-07-02 20:46 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-07-02 9:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-07-02
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-07-02 09:47:02 UTC ---
Slightly reduced:
template <typename T>
struct S { int v () const; };
template <typename T>
struct V : public S<T> {};
struct U
{
V<int> v;
template<typename T>
struct W
{
W (U const &x) { V<int> const &v = x.v; v.v(); }
};
};
Started failing with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172165
aka PR48500 (so it surprises me it doesn't hit 4.6.x too because that change
has been backported there too).
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
` (2 preceding siblings ...)
2012-07-02 9:47 ` jakub at gcc dot gnu.org
@ 2012-07-02 20:46 ` jason at gcc dot gnu.org
2012-07-03 3:30 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-02 20:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
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++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
` (3 preceding siblings ...)
2012-07-02 20:46 ` jason at gcc dot gnu.org
@ 2012-07-03 3:30 ` jason at gcc dot gnu.org
2012-07-03 3:30 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-03 3:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 03:30:05 UTC ---
Author: jason
Date: Tue Jul 3 03:29:58 2012
New Revision: 189187
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189187
Log:
PR c++/53816
* class.c (resolves_to_fixed_type_p): Check uses_template_parms
(current_function_decl) instead of processing_template_decl.
Added:
trunk/gcc/testsuite/g++.dg/template/ref6.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++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
` (4 preceding siblings ...)
2012-07-03 3:30 ` jason at gcc dot gnu.org
@ 2012-07-03 3:30 ` jason at gcc dot gnu.org
2012-07-03 3:31 ` jason at gcc dot gnu.org
2012-07-03 3:31 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-03 3:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 03:30:05 UTC ---
Author: jason
Date: Tue Jul 3 03:29:58 2012
New Revision: 189187
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189187
Log:
PR c++/53816
* class.c (resolves_to_fixed_type_p): Check uses_template_parms
(current_function_decl) instead of processing_template_decl.
Added:
trunk/gcc/testsuite/g++.dg/template/ref6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 03:30:31 UTC ---
Author: jason
Date: Tue Jul 3 03:30:27 2012
New Revision: 189189
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189189
Log:
PR c++/53816
* class.c (resolves_to_fixed_type_p): Check uses_template_parms
(current_function_decl) instead of processing_template_decl.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/ref6.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/class.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
` (6 preceding siblings ...)
2012-07-03 3:31 ` jason at gcc dot gnu.org
@ 2012-07-03 3:31 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-03 3:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 03:30:31 UTC ---
Author: jason
Date: Tue Jul 3 03:30:27 2012
New Revision: 189189
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189189
Log:
PR c++/53816
* class.c (resolves_to_fixed_type_p): Check uses_template_parms
(current_function_decl) instead of processing_template_decl.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/ref6.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/class.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/53816] [4.7/4.8 Regression] internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
` (5 preceding siblings ...)
2012-07-03 3:30 ` jason at gcc dot gnu.org
@ 2012-07-03 3:31 ` jason at gcc dot gnu.org
2012-07-03 3:31 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2012-07-03 3:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53816
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-03 03:31:29 UTC ---
Fixed for 4.7.2.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-07-03 3:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-30 6:33 [Bug c++/53816] New: internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option ai.azuma at gmail dot com
2012-06-30 6:34 ` [Bug c++/53816] " ai.azuma at gmail dot com
2012-07-02 8:56 ` [Bug c++/53816] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-07-02 9:47 ` jakub at gcc dot gnu.org
2012-07-02 20:46 ` jason at gcc dot gnu.org
2012-07-03 3:30 ` jason at gcc dot gnu.org
2012-07-03 3:30 ` jason at gcc dot gnu.org
2012-07-03 3:31 ` jason at gcc dot gnu.org
2012-07-03 3:31 ` 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).