www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - GPF encountered in v0.92

reply Andrew Edwards <ridimz_at yahoo.dot.com> writes:
This crashes the compiler:

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

Regards,
Andrew
Jun 08 2004
parent reply "Bruno A. Costa" <bruno codata.com.br> writes:
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.
Jun 09 2004
parent Andrew Edwards <ridimz_at yahoo.dot.com> writes:
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
Jun 09 2004