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

David Blaikie dblaikie at gmail.com
Tue Dec 13 16:11:09 PST 2011

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

More information about the cfe-commits mailing list