[cfe-commits] [Patch][Review] Tests for forward-declared enums

Richard Smith richard at metafoo.co.uk
Sat Feb 25 14:06:39 PST 2012


Hi,

We already have tests for simple cases of forward-declared enum in
test/SemaCXX/enum-scoped.cpp. The major missing piece is support for
out-of-class definition of enum members of class templates, for instance:

template<typename T> class C {
  enum E : T;
};

template<typename T> enum C<T>::E : T {
  a, b, c
};

See [temp.mem.enum].

Thanks,
Richard

On Sat, Feb 25, 2012 at 9:56 AM, Jonathan Sauer <jonathan.sauer at gmx.de>wrote:

> Hello,
>
> since as far as I can tell from my experience clang fully implements
> forward-declared
> enums and is only missing the corresponding tests, I attached a patch
> providing the
> latter as well as an update to the status page.
>
> Please review, comment, and commit if ok.
>
>
> Jonathan
>
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120225/86852893/attachment.html>


More information about the cfe-commits mailing list