Internal compiler error

gustavo gustavo@geneura.ugr.es
Wed Dec 1 08:24:00 GMT 1999


Hi:

When compiling a file I get:

g++ bug.cc 
bug.cc: In instantiation of
`Thing<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>,float>':
bug.cc:53:   instantiated from
`Evaluator<Thing<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>,float> >'
bug.cc:53:   instantiated from here
bug.cc:53: Internal compiler error.
bug.cc:53: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
bug.cc:53: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.

The file is:

//-----------------------------------------------------------------------------
// bug.cc
//-----------------------------------------------------------------------------

template <class G, class P> class Thing: public G
{
public:
  template <class Evaluator> P fitness(const Evaluator& evaluator) const 
  {
    return P();
  }
};

//-----------------------------------------------------------------------------

main()
{
  Thing<int, float> thing;
}

//-----------------------------------------------------------------------------


More information about the Gcc-bugs mailing list