This patch is to address PR13271 -- the problem comes from declaring an array that's "too large" within a structure, and then attempting to take the sizeof that structure. We have an assert in ASTContext::getTypeInfoImpl about the size of constant arrays, but the problem is that this is called when attempting to get the sizeof a structure. We've already reported the issue to the user about the array being too large by this point, and so the assert triggers.
I'm not convinced the assert is required here, so I've removed it in this patch. However, I'm also not convinced the assert is invalid and am open to suggestions as to other ways to handle the error. ~Aaron
arraysize.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
