Logo Search packages:      
Sourcecode: gcc-2.95 version File versions

bug-53698.C

void foobar (void (*)(void *));

class Component {
public:
  virtual void handler () {}

  template <class comp_type> void start_handler (comp_type);
private:
  template <class comp_type> static void * startup (void *);
};

template <class comp_type> void Component::start_handler (comp_type data)
{
  foobar (&startup<comp_type>);     /* Internal compiler error here.  */
}

int main ()
{
  Component comp;
  comp.start_handler (&comp); /* Instantiated here.  */
}

Generated by  Doxygen 1.6.0   Back to index