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

C++ compile error depending on ordering of names #68

Open
PaulThompson opened this issue Apr 26, 2019 · 0 comments
Open

C++ compile error depending on ordering of names #68

PaulThompson opened this issue Apr 26, 2019 · 0 comments
Labels

Comments

@PaulThompson
Copy link

// Generates and compiles OK
module bugged_ok {
    struct AA_Struct
    {
        Double val123;
    };
    union AZ_Union<T>
    {
        AA_Struct val;
        T tval;
    };
};
// Generates ok but fails to compile
module bugged {
    struct AZ_Struct
    {
        Double val123;
    };

    // NOT OK - c++ compile error "invalid use of incomplete type ‘struct ADL::bugged::AZ_Struct’" - something to do with ordering of items?
    union AA_Union<T>
    {
        AZ_Struct val;
        T tval;
    };
};
@timbod7 timbod7 added the bug label Nov 20, 2019
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