[cfe-dev] Fwd: Sizeof for non-static class members

John Criswell criswell at illinois.edu
Thu Feb 2 08:59:28 PST 2012

On 2/2/12 10:52 AM, Michael Price wrote:
> I sent this to the commit list, but since I'm not registered with it, 
> I suspect it is in moderator-limbo...

Nope.  It's not in moderator limbo, so I'm not sure what happened to it.

In any event, you could always subscribe to the list and then change 
your subscription to not deliver any messages.  As someone who routinely 
releases moderated messages from people who don't subscribe to the 
various LLVM-related lists, I can certainly say that I wish people would 
do that more often.

-- John T.

> ---------- Forwarded message ----------
> From: *Michael Price* <michael.b.price.dev at gmail.com 
> <mailto:michael.b.price.dev at gmail.com>>
> Date: Thu, Feb 2, 2012 at 12:55 AM
> Subject: Sizeof for non-static class members
> To: cfe-commits at cs.uiuc.edu <mailto:cfe-commits at cs.uiuc.edu>
> Attached is a patch that adds tests for the C++11 feature that allows 
> non-static class members to be used in the parameter of sizeof() 
> without needing an instance, i.e.
> struct S { int m; }
> sizeof(S::m);
> It seems that code that implements this feature was committed in late 
> 2010, but there was never any update to the status page.  If we think 
> that these tests confirm that the feature is complete, I can submit a 
> different patch to update the cxx_status.html page (or someone else 
> can update it if they care to backtrace availability to a "released" 
> version of clang).
> Questions are welcome.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120202/3e8296b9/attachment.html>

More information about the cfe-dev mailing list