public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
@ 2010-10-10 8:18 zsojka at seznam dot cz
2010-10-10 11:29 ` [Bug lto/45959] " rguenth at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-10 8:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Summary: [4.6 Regression] ICE: tree code 'template_type_parm'
is not supported in gimple streams with -flto/-fwhopr
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22011
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22011
testcase
Compiler output:
$ gcc -flto testcase.C
testcase.C:106:1: internal compiler error: tree code 'template_type_parm' is
not supported in gimple streams
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r165241 - crash
r165220 - crash
r165152 - OK
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
@ 2010-10-10 11:29 ` rguenth at gcc dot gnu.org
2010-10-10 11:30 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-10 11:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.10.10 11:29:26
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-10 11:29:26 UTC ---
We are writing DECL_CONTEXT of a TYPE_DECL which is a RECORD_TYPE which
is not instantiated.
We should probably simply clear all fields of RECORD_TYPEs which are
"incomplete" this way.
A more radical approach would be to do for TYPE_FIELDS what we do now
for BLOCK_SUBBLOCKS and BLOCK_VARS - write them lazily (but given that
they are possibly shared between multiple instances of RECORD_TYPEs
re-constructing the field list isn't really possible).
I have a patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
2010-10-10 11:29 ` [Bug lto/45959] " rguenth at gcc dot gnu.org
@ 2010-10-10 11:30 ` rguenth at gcc dot gnu.org
2010-10-10 20:11 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-10 11:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-10 11:30:16 UTC ---
*** Bug 45960 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
2010-10-10 11:29 ` [Bug lto/45959] " rguenth at gcc dot gnu.org
2010-10-10 11:30 ` rguenth at gcc dot gnu.org
@ 2010-10-10 20:11 ` jason at gcc dot gnu.org
2010-10-11 13:26 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-10 20:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
AssignedTo|rguenth at gcc dot gnu.org |jason at gcc dot gnu.org
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-10 20:11:01 UTC ---
Mine.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-10-10 20:11 ` jason at gcc dot gnu.org
@ 2010-10-11 13:26 ` jason at gcc dot gnu.org
2010-10-11 13: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 @ 2010-10-11 13:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-11 13:25:45 UTC ---
Author: jason
Date: Mon Oct 11 13:25:37 2010
New Revision: 165306
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165306
Log:
PR lto/45959
PR lto/45960
* pt.c (tsubst_copy) [INTEGER_CST]: Instantiate the type.
Added:
trunk/gcc/testsuite/g++.dg/lto/20101010-1_0.C
trunk/gcc/testsuite/g++.dg/lto/20101010-2_0.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-10-11 13:26 ` jason at gcc dot gnu.org
@ 2010-10-11 13:30 ` jason at gcc dot gnu.org
2010-10-11 13:54 ` scovich at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-11 13:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |rguenth at gcc dot gnu.org
Resolution| |FIXED
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-11 13:30:16 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
` (4 preceding siblings ...)
2010-10-11 13:30 ` jason at gcc dot gnu.org
@ 2010-10-11 13:54 ` scovich at gmail dot com
2010-10-11 16:50 ` jason at gcc dot gnu.org
2021-08-25 22:58 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2010-10-11 13:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Ryan Johnson <scovich at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |scovich at gmail dot com
--- Comment #6 from Ryan Johnson <scovich at gmail dot com> 2010-10-11 13:53:42 UTC ---
Actually, this isn't a regression -- not on 4.6, at least. The following
minimal test case makes x86_64-unknown-linux-gnu-gcc-4.5.1 die with the same
error message:
$ cat > lto-bug.h <<EOF
#pragma interface
template<class T> struct foo;
template<class T>
struct foo<T*&> : foo<T&> {
foo<T*&>(T* t) : foo<T&>(*t) { }
};
EOF
$ cat > lto-bug.C <<EOF
#pragma implementation "lto-bug.h"
#include "lto-bug.h"
EOF
$ gcc-4.5.1 -flto lto-bug.C
In file included from lto-bug.C:2:0:
lto-bug.h:6:2: internal compiler error: tree code ‘template_type_parm’ is not
supported in gimple streams
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Removing anything at all makes the ICE disappear
I don't have a copy of the 4.6 sources to test whether the just checked-in fix
takes care of this... reopen?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
` (5 preceding siblings ...)
2010-10-11 13:54 ` scovich at gmail dot com
@ 2010-10-11 16:50 ` jason at gcc dot gnu.org
2021-08-25 22:58 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-11 16:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-11 16:49:52 UTC ---
(In reply to comment #6)
> #pragma interface
> template<class T> struct foo;
> template<class T>
> struct foo<T*&> : foo<T&> {
> foo<T*&>(T* t) : foo<T&>(*t) { }
> };
This looks like a different bug that just produces the same error message.
This testcase works fine with pre-4.6, and is not fixed in 4.5 by the patch for
45959.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
` (6 preceding siblings ...)
2010-10-11 16:50 ` jason at gcc dot gnu.org
@ 2021-08-25 22:58 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-25 22:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-08-25 22:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 8:18 [Bug lto/45959] New: [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr zsojka at seznam dot cz
2010-10-10 11:29 ` [Bug lto/45959] " rguenth at gcc dot gnu.org
2010-10-10 11:30 ` rguenth at gcc dot gnu.org
2010-10-10 20:11 ` jason at gcc dot gnu.org
2010-10-11 13:26 ` jason at gcc dot gnu.org
2010-10-11 13:30 ` jason at gcc dot gnu.org
2010-10-11 13:54 ` scovich at gmail dot com
2010-10-11 16:50 ` jason at gcc dot gnu.org
2021-08-25 22:58 ` pinskia 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).