On Tue, Jan 14, 2014 at 8:50 PM, Richard Smith <[email protected]> wrote: > On Tue, Jan 14, 2014 at 5:47 PM, Richard Smith <[email protected]> > wrote: >> >> On Tue, Jan 14, 2014 at 5:23 PM, Alp Toker <[email protected]> wrote: >>> >>> This patch generalizes C++11 attributes for use in C and C-like dialects, >>> and additionally enables the new syntax as an extension to C11. >> >> >> Why do you allow this by default in C11? And conversely, why not in C90 / >> C99? > > > I think maybe this was unclear. I'd prefer one of these two options: > > 1) A -fcxx-attributes argument (or similar) to enable C++ attribute syntax > outside C++ (and either do or don't allow them by default in C++98), or > 2) C++ attributes available by default in all language modes. > > I'd prefer the first option (defaulting to following the language standard > more strictly) -- I think this would be the first time we enabled a C++ > language feature in C modes, if we went with the second option.
I'm in agreement that the first option is my preference as well. ~Aaron _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
