[Webkit-unassigned] [Bug 81061] Functions with C linkage should not return C++ classes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 13 17:28:06 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=81061


Filip Pizlo <fpizlo at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #131752|0                           |1
        is obsolete|                            |
 Attachment #131752|review?                     |
               Flag|                            |
 Attachment #131758|                            |review?
               Flag|                            |




--- Comment #3 from Filip Pizlo <fpizlo at apple.com>  2012-03-13 17:28:06 PST ---
Created an attachment (id=131758)
 --> (https://bugs.webkit.org/attachment.cgi?id=131758&action=review)
the patch

Corrected the comment.

Apparently, the requirements for return types of functions with C linkage match the C++-03 definition of POD (a strict subset of aggregate types - so no C++-style members, only POD fields).  The C++-11 definition has been split up into two separate concepts (trivial and standard-layout).  Prior to this code we were returning standard-layout but not non-trivial (and thus not POD) classes, which is correct in C++-11 but not C++-03.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list