uwsampa / accept

an approximate compiler
http://accept.rocks
MIT License
37 stars 14 forks source link

Trying to annotate some types crashes clang #33

Open billzorn opened 9 years ago

billzorn commented 9 years ago

The example I found was:

#include <enerc.h>

int main() {
  APPROX int (*foo)[2];
  return foo[0][0];
}
tmoreau89 commented 8 years ago

encountered the same bug that will cause clang to crash - workaround involves avoiding multidimensional array pointers altogether (use regular one-dimensional array pointer, and perform address computation explicitly...)