[PATCH 2/3] change class-key of PODs to struct and others to class (PR 61339)

Martin Sebor msebor@gmail.com
Mon Jul 8 22:02:00 GMT 2019


The attached patch changes the class-key of class definitions that
satisfy the requirements on a POD struct to 'struct', and that of
struct definitions that aren't POD to class, according to the GCC
coding convention.  The patch is also prerequisite for GCC being
able to compile cleanly with -Wmismatched-tags.

I made the changes building GCC with -Wstruct-not-pod and
-Wclass-is-pod enabled, scanning the build log for instances
of each warning, and using a script replacing the class-key
as necessary and adjusting the access of the members declared
immediately after the class-head.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-61339-pod.diff
Type: text/x-patch
Size: 17096 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190708/988e246c/attachment.bin>


More information about the Gcc-patches mailing list