From 76f374df2c1a30013f8252cab2322be69376d460 Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Thu, 7 Nov 2024 16:27:01 -0500 Subject: [PATCH] Merge pull request #659 from gmlueck/gmlueck/cherry-pick-651 Fix error behavior for initialize_to_identity (cherry picked from commit a296a63e4cfcf0684f46e7b13605bec82830a4bd) --- adoc/chapters/programming_interface.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 37f35308..0cf978ea 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -13885,9 +13885,10 @@ property::reduction::initialize_to_identity identity value passed to the reduction interface, or to the identity value determined by the [code]#known_identity# trait if no identity value was specified. If no identity value was specified and an identity value - cannot be determined by the [code]#known_identity# trait, the compiler - must raise a diagnostic. When this property is set, the original value of - the reduction variable is not included in the reduction. + cannot be determined by the [code]#known_identity# trait, the + implementation must throw an [code]#exception# with the + [code]#errc::invalid# error code. When this property is set, the original + value of the reduction variable is not included in the reduction. |====