Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next: problem parsing if stmt #1606

Open
havogt opened this issue Aug 7, 2024 · 0 comments
Open

next: problem parsing if stmt #1606

havogt opened this issue Aug 7, 2024 · 0 comments
Labels
module: frontend Frontend subpackage triage: bug Something isn't working

Comments

@havogt
Copy link
Contributor

havogt commented Aug 7, 2024

The following code fails, but looks legal

    def foo(a: bool, b: gtx.Field[[TDim], float64], c: gtx.Field[[TDim], float64]):
        res = b
        if a:
            return b
        else:
            res = c
        return res

with

gt4py.next.errors.exceptions.DSLError: Undeclared symbol 'resᐞ1'.
in

src/gt4py/next/ffront/foast_passes/type_deduction.py:354: DSLError
@havogt havogt added triage: bug Something isn't working module: frontend Frontend subpackage labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: frontend Frontend subpackage triage: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant