Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Compiler in endless loop
Hello, when compiling folowing example with DMC V8.44.6n the compiler reports the unknown pointer in the destructor of template PADEL and then hangs. It can only be terminated by Control-C Example: template<class T> class PADEL { public: PADEL(T* p) : ptr(p) {} ~PADEL() {delete[] p;} // p is mistake, wanted ptr private: T *ptr; }; int main() { int *ip = new int[10]; PADEL<int> ip_care(ip); return 0; } I know that I don't have the latest version. So if it's already solved I will download the latest DMC. - Heinz Dec 14 2005
|