Opened 5 years ago
#179 new defect
Bad Error Message if Missing sized in struct forall.
Reported by: | ajbeach | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
The code does not support the following code:
forall(dtype T | sized(T)) struct wrap { T get; }; forall(dtype U) struct wrap_ptr { wrap(U) * get; };
And even if we never support this the error message is terrible. The compiler spits about over a half dozen errors, most of which refer to missing members in the wrap_ptr type. The fix is to add | sized(U)
to the second forall list, but the error message does not hint at that at all.
Note: See
TracTickets for help on using
tickets.