Opened 5 years ago
Last modified 8 months ago
#176 new defect
Assignment fails for union structure field — at Initial Version
Reported by: | pabuhr | Owned by: | |
---|---|---|---|
Priority: | major | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
forall( dtype T ) union Link { struct { T * top; uintptr_t count; }; __int128 atom; // both fields }; int fred() { Link(int) l; int * ip = l.top; // assignment works __int128 I = l.atom; ip = l.top; // assignment fails I = l.atom; }
CFA Version 1.0.0 (debug) test1.cfa:14:1 error: No reasonable alternatives for expression Applying untyped: Name: ?=? ...to: Name: ip Untyped Member Expression, with field: Name: top ... from aggregate: Name: l
Note:
See TracTickets
for help on using tickets.