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

Segfault with ill-formed tuple-based loops #16

Closed
asutton opened this issue Apr 23, 2017 · 1 comment
Closed

Segfault with ill-formed tuple-based loops #16

asutton opened this issue Apr 23, 2017 · 1 comment
Labels

Comments

@asutton
Copy link
Owner

asutton commented Apr 23, 2017

This causes an ICE:

$class metaclass {
    constexpr {
        for (auto func : $metaclass.member_functions()) {
            // TODO: something interesting here..
        } 
    }
};

The error occurs in EvaluateStatement, which means that the loop is not being properly checked during transformation or substitution (tuples aren't ranges, so we should get a compiler error).

@asutton
Copy link
Owner Author

asutton commented Apr 24, 2017

Not actually fixed. Just improved the diagnostics outside of the given example.

@Jenny-fa Jenny-fa added the bug label Apr 26, 2017
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