Skip to content

Commit

Permalink
Merge pull request #659 from gmlueck/gmlueck/cherry-pick-651
Browse files Browse the repository at this point in the history
Fix error behavior for initialize_to_identity

(cherry picked from commit a296a63)
  • Loading branch information
gmlueck committed Nov 7, 2024
1 parent 76fd6ab commit 76f374d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

|====

Expand Down

0 comments on commit 76f374d

Please sign in to comment.