[cfe-commits] [patch] Decltype in simple-type-specifiers

David Blaikie dblaikie at gmail.com
Mon Jan 9 22:23:35 PST 2012


Bump (patch resync'd to recent revision)

On Tue, Dec 13, 2011 at 4:12 PM, David Blaikie <dblaikie at gmail.com> wrote:
> & of course I forgot to include the patch... here we go.
>
> On Tue, Dec 13, 2011 at 4:11 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> This patch adds support for decltype in simple-type-specifiers such as:
>>
>> struct foo { foo(int); };
>> foo func() {
>>  return decltype(foo())(3);
>> }
>>
>> I'm not sure how much testing would be desired here - I could go
>> through the spec & find all the uses of simple-type-specifier & add
>> test cases that verify that decltype works in such contexts but for
>> now I've done a smattering of those cases & things seem to be working
>> fairly nicely.
>>
>> Let me know if this is suitable,
>> - David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decltype-simple-type-specifier.diff
Type: text/x-diff
Size: 3518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120109/228f07b7/attachment.diff>


More information about the cfe-commits mailing list