Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error behavior for initialize_to_identity #651

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13892,9 +13892,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