<div class="gmail_quote">On Mon, Jun 25, 2012 at 2:25 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Jun 5, 2012, at 5:06 PM, "Sharlet, Dillon" <<a href="mailto:dillon.sharlet@intel.com">dillon.sharlet@intel.com</a>> wrote:<br>
<br>
> Hello All,<br>
><br>
> First of all, thank you all very much for implementing lambda expressions in Clang 3.1! This is a much anticipated feature and I greatly appreciate the work to implement this.<br>
><br>
> I have a small suggestion for lambdas expressions: How about supporting GNU attributes (__attribute__) in the attribute list of a lambda expression? I’m no clang ninja so I can’t say if what I did is stable/solid, but I was able to add the support I needed for this pretty easily using the handy ParseGNUAttributes function. The lambda parser already parses some attributes, so maybe this is simply an accidental omission?<br>
><br>
<br>
</div></div>It's not impossible... but why?</blockquote><div><br></div><div>I assume primarily for GCC compatibility. GCC accepts this, for instance:</div><div><br></div><div> auto x = [] () __attribute__((noreturn)) {};</div>
</div>