Skip to content

flowc: three gaps found by the #996 parity corpus (generic call check, ptr<Struct> argument, span<f64>) #1007

Closed

Description

@godofecht

compiler/scripts/parity_lowering.sh builds each corpus file on flowc and on the Python host. Three files the Python host compiles fail on flowc for reasons outside the #996 lowering; they are listed in compiler/parity_lowering/divergent.txt:

  1. examples/book/08_types_patterns.flow: flowc tc: no matching overload on the explicit generic call identity<i32>(21) (line 20).
  2. lib/stdlib/audio/notation.flow: the emitted C passes a NotationReader where the parameter is NotationReader* (cc error: take the address with &).
  3. lib/stdlib/sorting/core.flow: the emitted C uses flowc_span_double without declaring the span typedef for span.

Each was already failing on flowc before #996. Fix, then drop the line from divergent.txt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions