|
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++.beta - [bug] dmc.8.48.9: internal error cgreg 371
internal error cgreg 371
when compiling following code with
dmc -o+speed dirTree.cpp
error goes off when
1) no optimization
2) no use of sprintf
3) no use of for
-------- dirTree.cpp -----------
#include <stdio.h>
static inline char *make_path ( const char *base, const char *fname ) {
static char buf[260];
_snprintf ( buf, sizeof(buf), "%s/%s", base, fname );
buf[sizeof(buf)] = '\0';
return buf;
}
bool walk_dir_tree ( const char *root_dir, int wildcard_num, const char
**wildcards ) {
for ( int i = 0; i < wildcard_num; i ++ )
make_path ( root_dir, wildcards[i] );
return true;
}
May 12 2006
Hello, Nic Tiger wrote... May 14 2006
Heinz Saathoff wrote:Hello, Nic Tiger wrote... May 15 2006
|