[cfe-commits] [PATCH] PR13788 - sema crash on add initializer

Brian Brooks brooks.brian at gmail.com
Wed Oct 31 14:26:21 PDT 2012

The attached patch needs review please!

I suspect that we may need to call RequireCompleteType() to do
instantiation *even if* the VDecl is a dependent type.  I am not yet able
to reason about this though.

The patch prevents the abort, and the test case (extended with code to
print initialized data) output looks the same in clang and gcc.

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121031/816297b0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depdeclinit.patch
Type: application/octet-stream
Size: 1411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121031/816297b0/attachment.obj>

More information about the cfe-commits mailing list