[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:20:00 GMT 2019


Hopefully with the right patch this time (thanks Jon).

On 7/8/19 4:00 PM, Martin Sebor wrote:
> 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-cleanup.diff.gz
Type: application/gzip
Size: 36135 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190708/adee21db/attachment.gz>


More information about the Gcc-patches mailing list