[cfe-dev] Pointer arithmetic

Sanghyeon Seo sanxiyn at gmail.com
Sun Dec 9 04:38:55 PST 2007


The following error is not diagnosed.

int test(int *a, double *b) { return a - b; }

By the way, this does crash in CodeGen. Can CodeGen assume that the
code is correctly typed, or is it still a good idea to sprinkle
asserts in CodeGen?

-- 
Seo Sanghyeon



More information about the cfe-dev mailing list