[cfe-dev] implicit int rule for c89
Rong, Hongbo
hongbo.rong at intel.com
Sun Dec 14 22:21:37 PST 2014
b.c:
int main() {
a = 1;
return a;
}
clang.exe -std=c89 b.c
b.c:2:3: error: use of undeclared identifier 'a'
a = 1;
^
b.c:3:10: error: use of undeclared identifier 'a'
return a;
^
2 errors generated.
For c89, why variable a is not made as an implicit int?
Thanks,
Hongbo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141215/51974a5d/attachment.html>
More information about the cfe-dev
mailing list