This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53528] Support C++11 generalized attributes


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53528

--- Comment #7 from dodji at seketeli dot org <dodji at seketeli dot org> 2012-10-08 12:06:48 UTC ---
Sorry Michal for getting to your comment this late.

"ethouris at gmail dot com" <gcc-bugzilla@gcc.gnu.org> a Ãcrit:

> Looks nice. Is that a big deal if you also make a standard [[noreturn]]
> attribute simply an alias to [[gnu::noreturn]]?

The patch as it is focused on bringing in the core support for c++11
attributes.  Supporting some attributes in particular is left as a
follow-up to come up later.  An exception to this is that the patch also
supports alignas expressions, but that is just because it was needed to
complete the support of the attributes syntax.

> As far as I know the standard, they should behave exactly the same
> way.

I haven't looked at the details yet, but I think you are correct.

>
> Another thing is that I think this should work, according to the standard:
>
> void quit [[gnu::noreturn]] () { throw 0; }
>
> And it doesn't with this patch.

I think it works with the version of the patch that I just committed.
Or maybe I don't understand what you mean by "doesn't work".

Thanks for caring.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]