[cfe-commits] [PATCH] Implicit fall-through between switch labels

Chandler Carruth chandlerc at google.com
Tue Apr 24 10:52:45 PDT 2012


On Tue, Apr 24, 2012 at 10:39 AM, Richard Smith <richard at metafoo.co.uk>wrote:

> On Tue, Apr 24, 2012 at 9:37 AM, Jordy Rose <jediknil at belkadan.com> wrote:
>
>> And again I think the fixit (and perhaps the message) should use GCC
>> __attribute__ syntax if we're not in C++11 mode.
>
>
> GNU attributes can't be attached to statements. Do we want to diverge from
> the GNU attribute spec (such as it is) for this? (I'm not saying no -- I
> think having this outside C++11 would be awesome -- but this gives me
> pause).
>

Personally, I have no particular motivation to expose this outside of
C++11. Yet another reason to migrate to C++11. ;]

If we're going to do it, I would do it by making C++11 attributes (or some
subset) available as an extension in C++98 mode.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120424/46bcdcdd/attachment.html>


More information about the cfe-commits mailing list