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

Michael Price michael.b.price.dev at gmail.com
Thu Feb 2 08:52:06 PST 2012


I sent this to the commit list, but since I'm not registered with it, I
suspect it is in moderator-limbo...

---------- Forwarded message ----------
From: Michael Price <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


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120202/3d44b0b9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sizeof-nonstatic-member-usage.patch
Type: application/octet-stream
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120202/3d44b0b9/attachment.obj>


More information about the cfe-dev mailing list