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

David Blaikie dblaikie at gmail.com
Tue Dec 13 16:12:17 PST 2011


& 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: application/octet-stream
Size: 3518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111213/d93f8d4e/attachment.obj>


More information about the cfe-commits mailing list