Bug 000144

When Created: 03/25/1997 14:36:55
Against DJGPP version: 2.01
By whom:
Abstract: Obviously wrong "template " crashes the compiler
The following code fragment crashes the compiler. It is obviously wrong,
but I think the compiler should issue an error message instead.

template <class Type,class Type>
inline void swap(Type &a,Type &b)
 Type tmp = a;
 a = b;
 b = tmp;

Note added: 04/13/1999 07:00:26
By whom:
This compiler crash is not DJGPP-specific.  It should be reported
to the GCC maintainers.

Closed on 04/13/1999 07:00:00: A genuine bug in the C++ compiler.
By whom:

  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010