[Patch] Unknown-bound array static data member of template shouldd be type dependent

KARTHIKVENKATESH BHAT kv.bhat at samsung.com
Mon Oct 7 02:25:33 PDT 2013


Hi All,
Please find attached the patch to fix issue #408 discussed at http://open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html
As per this "An explicit specialization of a static data member declared as an array of unknown bound can have a different bound from its definition, if any" .

This fixes the problem in which clang fails to produce executable in these cases- e.g. http://searchcode.com/codesearch/raw/8024712

The patch tests that if a static data member of a current instantiation is incomplete array type mark it as type dependent.  This is similar to the way it is currently fixed in gcc.
I'm not sure were the TC for this patch will go hence not added a TC for now.

Please let me know if the patch looks good.

Thanks and Regards
Karthik Bhat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DR408.patch
Type: application/octet-stream
Size: 2356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131007/9bc3f613/attachment.obj>


More information about the cfe-commits mailing list