Skip to content

Chuck compiler crash when initializing a vec2 #542

Open

Description

@AndrewAday
float x;
float y;
@(x y) => vec2 a;

Result:

Assertion failed: (type != NULL), function type_engine_scan2_exp_decl_create, file chuck_scan.cpp, line 2556.
[1]    90576 abort      chuck bug.ck

Activity

  1. gewang commented on Mar 4, 2026

    @gewang
    Member

    ah this is due to the missing comma between x and y on line 3; the chuck AST sees x y as a variable declaration... investigating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions