From 574c105325d4553b20cc5f87ff52d00bfe19cd44 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Mon, 11 Jul 2022 18:13:06 +0200 Subject: [PATCH] [expr.sizeof] Clarify padding in class types --- source/expressions.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/source/expressions.tex b/source/expressions.tex index 747e23bacd..439272a0db 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -4838,6 +4838,7 @@ When applied to a class, the result is the number of bytes in an object of that class including any padding required for placing objects of that type in an array. +The amount and placement of padding in a class type is unspecified. The result of applying \keyword{sizeof} to a potentially-overlapping subobject is the size of the type, not the size of the subobject.