Closed Quuxplusone closed 15 years ago
Bugzilla Link | PR3531 |
Status | RESOLVED DUPLICATE of bug 3541 |
Importance | P normal |
Reported by | Daniel Dunbar (daniel@zuster.org) |
Reported on | 2009-02-09 17:09:14 -0800 |
Last modified on | 2009-02-10 16:17:49 -0800 |
Version | unspecified |
Hardware | PC All |
CC | andersca@icloud.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Here's a reduction that segfaults:
void f(void)
{
float *f = (float *)malloc(10 * sizeof(float));
f[0];
}
int main()
{
f();
}
Is that a faithful reduction? Did the original source file not include stdlib.h?
If so, this is a dup of bug 3527.
Sorry, I forgot to copy the stdlib.h header :) Yeah, I suspect it's a dupe.
_This bug has been marked as a duplicate of bug 3541_