You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The grammar for a reduction capture allows an arbitrary declarator. This makes it possible to write a reduction capture which looks like it declares a pointer-to-reduction, or array-of-reduction, or even function-returning-reduction.
The text was updated successfully, but these errors were encountered:
These possibilities were never intended; consequently, the existing text doesn't actually say what happens if any kind of declarator derivation is attempted.
The simple solution would be to change the grammar to allow only an identifier instead of a declarator. This is not quite consistent with the way a bit-field declaration is handled.
I decided to go a different direction, less explicit, but consistent with the way member and bit-field declarations are described. (Members are described without reference to the specifiers in their declarations. Basically, they get their type and such just by virtue of the fact that a member declaration works like a declaration because it looks like a declaration.)
The grammar for a reduction capture allows an arbitrary declarator. This makes it possible to write a reduction capture which looks like it declares a pointer-to-reduction, or array-of-reduction, or even function-returning-reduction.
The text was updated successfully, but these errors were encountered: