Re: type0identifiers as identifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello GCC,

GCC compiles the below code snippet without any noise though the
type-identifier "foo" is used as identifier in the function
PrintHello.

My C99 parser failed to parse and I'm wondering if it is a GNU
extension ? Can someone give plausible explanation as  to why it is a
legitimate C program ?

typedef int foo;

static int PrintHello(int val)
{
    int foo;

    printf("Hello world\n");

    return foo;
}

int main()
{
  PrintHell();
}



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux