This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/44196] lto1: ICE: tree check: expected field_decl, have type_decl in gimple_types_compatible_p, at gimple.c:3597
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2010 14:10:33 -0000
- Subject: [Bug lto/44196] lto1: ICE: tree check: expected field_decl, have type_decl in gimple_types_compatible_p, at gimple.c:3597
- References: <bug-44196-19203@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-05-19 14:10 -------
template <typename Ordinal>
struct DirectSerializationTraits
{
static void fromCountToDirectBytes(const Ordinal count) {}
};
template<typename Ordinal> class SerializationTraits
: public DirectSerializationTraits<Ordinal> { };
template <typename Ordinal>
class ConstValueTypeSerializationBuffer
{
public:
ConstValueTypeSerializationBuffer(const Ordinal count)
{
typedef SerializationTraits<Ordinal> SerT;
SerT::fromCountToDirectBytes(count);
}
};
int main ()
{
ConstValueTypeSerializationBuffer<int> charSendBuffer(1);
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-05-19 13:59:35 |2010-05-19 14:10:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44196