This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/45959] [4.6 Regression] ICE: tree code 'template_type_parm' is not supported in gimple streams with -flto/-fwhopr


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]