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

David Blaikie dblaikie at gmail.com
Mon Jan 9 23:14:37 PST 2012


Oops - updated test (removed some previously expected warnings that
don't fire any more since we've got some of the uniform initialization
stuff working now)

On Mon, Jan 9, 2012 at 10:23 PM, David Blaikie <dblaikie at gmail.com> wrote:
> 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/a5e7a170/attachment.diff>


More information about the cfe-commits mailing list