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/44196] lto1: ICE: tree check: expected field_decl, have type_decl in gimple_types_compatible_p, at gimple.c:3597



------- 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


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