Thread overview
GPF encountered in v0.92
Jun 09, 2004
Andrew Edwards
Jun 09, 2004
Bruno A. Costa
Jun 09, 2004
Andrew Edwards
June 09, 2004
This crashes the compiler:

void main()
{
  printf(t[]);
}

Regards,
Andrew
June 09, 2004
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
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