August 04, 2003 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; } |
Copyright © 1999-2021 by the D Language Foundation