[Issue 24790] New: -vcg-ast ICE on lowered assign exp

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 3 09:56:32 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24790

          Issue ID: 24790
           Summary: -vcg-ast ICE on lowered assign exp
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dkorpel at live.nl

```D
struct S { int[] payload; }
long f(S s) => s.payload.length += 3;
```

Compiling with -vcg-ast trips an assert with "precedence not defined for token
'='", because there's no PREC entry for EXP.loweredAssignExp.

--


More information about the Digitalmars-d-bugs mailing list