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

illegal use of soa rate qualifier #2822

Open
MkazemAkhgary opened this issue Mar 30, 2024 · 0 comments
Open

illegal use of soa rate qualifier #2822

MkazemAkhgary opened this issue Mar 30, 2024 · 0 comments
Labels

Comments

@MkazemAkhgary
Copy link

MkazemAkhgary commented Mar 30, 2024

I think the following code should throw an error.

struct Foo
{
    uint8 x;
};
typedef soa<TARGET_WIDTH> Foo Foo_soa;
struct Bar
{
    uniform Foo_soa foo; // compiles fine and the type seems to be `uniform Foo`.
};

void Func(Foo_soa& foo) // compiles fine and the type seems to be `uniform Foo`.
{
}

also the following code does not compile and needs typedef.

struct Bar
{
    soa<TARGET_WIDTH> Foo foo; // syntax error, unexpected 'soa'.
};
@pbrubaker pbrubaker added the Bugs label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants