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 <[email protected]>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
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to