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

ADL compiler infinite loop for infinite type with default. #88

Open
timbod7 opened this issue Feb 20, 2020 · 0 comments
Open

ADL compiler infinite loop for infinite type with default. #88

timbod7 opened this issue Feb 20, 2020 · 0 comments
Labels

Comments

@timbod7
Copy link
Collaborator

timbod7 commented Feb 20, 2020

ADL accepts and generates code for this declaration as expected:

struct X {
   X x;
};

but, unfortunately, adding a default sends the compiler into an infinite loop:

struct X {
   X x = {};
};

This should result in an error.

@timbod7 timbod7 added the bug label Feb 26, 2020
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

1 participant