Thread overview | |||||
---|---|---|---|---|---|
|
June 09, 2004 GPF encountered in v0.92 | ||||
---|---|---|---|---|
| ||||
This crashes the compiler: void main() { printf(t[]); } Regards, Andrew |
June 09, 2004 Re: GPF encountered in v0.92 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | Andrew Edwards wrote:
> This crashes the compiler:
>
> void main()
> {
> printf(t[]);
> }
>
> Regards,
> Andrew
I could not reproduce the problem.
I'm using dmd 0.92 in a Linux box.
[bruno@localhost D]$ dmd crash.d
crash.d(3): undefined identifier t
Cheers,
Bruno.
|
June 09, 2004 Re: GPF encountered in v0.92 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bruno A. Costa | Bruno A. Costa wrote:
> Andrew Edwards wrote:
>
>
>>This crashes the compiler:
>>
>>void main()
>>{
>> printf(t[]);
>>}
>>
>>Regards,
>>Andrew
>
>
> I could not reproduce the problem.
>
> I'm using dmd 0.92 in a Linux box.
>
> [bruno@localhost D]$ dmd crash.d
> crash.d(3): undefined identifier t
>
> Cheers,
>
> Bruno.
Interesting, let me have another look.
Ahhh! There it is. I know I wasn't seeing things!
In the file crash.d, save and compile the following:
void main()
{
printf(chash[]);
}
Andrew
|
Copyright © 1999-2021 by the D Language Foundation