From 8a379532ce62a55fd5fe33ffd5e860ba95a2174e Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Tue, 22 Sep 2026 23:51:58 +0800 Subject: [PATCH 1/2] Fix: add missing 'object' in [dcl.init.general]/21 In section [dcl.init.general]/21, the phrase 'Destroying a scalar type has no effect' was missing the word 'object', making it grammatically incomplete. The sentence should read 'Destroying a scalar type object has no effect other than ending the lifetime of the object'. Issue: cplusplus/draft#9346 --- source/declarations.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/declarations.tex b/source/declarations.tex index 80d34f0cfc..05564bfddc 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -5529,7 +5529,7 @@ or by an inherited constructor\iref{class.inhctor.init}. \end{note} Destroying an object of class type invokes the destructor of the class. -Destroying a scalar type has no effect other than +Destroying a scalar type object has no effect other than ending the lifetime of the object\iref{basic.life}. Destroying an array destroys each element in reverse subscript order. From a807644fa805f26e25b2ded36a53cb256974d5a3 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Wed, 23 Sep 2026 00:28:54 +0800 Subject: [PATCH 2/2] Fix wording to match preceding sentence pattern Rephrase from 'a scalar type object' to 'an object of scalar type' to match the structure of the preceding sentence: 'Destroying an object of class type invokes the destructor...' --- source/declarations.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/declarations.tex b/source/declarations.tex index 05564bfddc..aa91170ffe 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -5529,7 +5529,7 @@ or by an inherited constructor\iref{class.inhctor.init}. \end{note} Destroying an object of class type invokes the destructor of the class. -Destroying a scalar type object has no effect other than +Destroying an object of scalar type has no effect other than ending the lifetime of the object\iref{basic.life}. Destroying an array destroys each element in reverse subscript order.