www.digitalmars.com         C & C++   DMDScript  

c++.beta - simple, but fail

I don't know why, but it is!

#include <iostream.h>

namespace aa
{
 double reset( double )
 {
  cout << "double" << endl;
  return 0;
 }
}
int main()
{

/////////
 using aa::reset;
 int reset(int); // this will make internal error: out 637
////////
//               if I change the order of above two statements, it will ok
///////
// int reset(int); // this will be fine
// using aa::reset;
//////

 reset( 2.3 );
 reset( 2 );

 return 0;
}

int reset( int )
{
 cout << "int" << endl;
 return 0;
}
Aug 04 2003