Comment by david2ndaccount
5 hours ago
Their specification is pretty bad, allowing code like:
#include <stdio.h>
#include <stddef.h>
void v(int y[printf("hello world!\n")]){
}
int main(){
v(NULL);
typedef int wut[printf("oh no\n")];
}
$ cc vla.c && ./a.out
hello world!
oh no`typedef`s with side effects...
No comments yet
Contribute on Hacker News ↗