& of course I forgot to include the patch... here we go.

On Tue, Dec 13, 2011 at 4:11 PM, David Blaikie <[email protected]> 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

Attachment: decltype-simple-type-specifier.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to