www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - segfaulting exe / atoi, toStringz

reply Thomas =?UTF-8?B?S8O8aG5l?= <thomas-dloop kuehne.cn> writes:
might be related to / or duplication of:
<cm98hu$e30$1 digitaldaemon.com> / digitalmars.D:12248

code:
# import std.string;
# int main(char[][] arg) {
#       char[] one = "1";
#       debug printf("pre\n");
#       int N = atoi(std.string.toStringz(one));
#       return 0;
#}

The debug build behaves as expected but the normal build produces a
segfaulting exe.

Thomas
Nov 08 2004
parent reply "Walter" <newshound digitalmars.com> writes:
I can't duplicate this.
Nov 10 2004
parent Thomas =?UTF-8?B?S8O8aG5l?= <thomas-dloop kuehne.cn> writes:
 I can't duplicate this.

Sorry, gdc's libphobos interfiered. Thomas
Nov 10 2004