r193919 - Sema: Cleanup and simplify anonymous union diagnostics

Jordan Rose jordan_rose at apple.com
Mon Nov 4 09:09:44 PST 2013


On Nov 2, 2013, at 3:38 , David Majnemer <david.majnemer at gmail.com> wrote:

> +                     : getLangOpts().CPlusPlus
> +                           ? diag::ext_flexible_array_union_gnu
> +                           : diag::err_flexible_array_union;

This doesn't look right. Flexible array members in unions shouldn't be an extension in C++ if they're disallowed in C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131104/a0506b90/attachment.html>


More information about the cfe-commits mailing list