Fun corners of rfc4506 XDR standard....

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

 



In my perverse exploration of meaningless corners of grammars...

This is compliant RFC4506 XDR....

union foou switch(int a[10]) {
  case 1 :
    int b;
  case 2 :
    char c;
  default :
    string d<5>;
};

It compiles with glibc 2.7 rpcgen and gcc.

What does switch(int a[10]) mean?

Dunno, ask the bloke that wrote a grammar that didn't forbid it. :-)


John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter@xxxxxxxxxx
New Zealand


[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