We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import std.stdio; import core.stdc.config;
void main() { __c_complex_float[] xxx = new __c_complex_float[10]; writeln(xxx); }
results in "Error: no init symbol for zero-initialized struct". it works with dmd.
The text was updated successfully, but these errors were encountered:
Thx for the report. This boils down to:
import core.stdc.config; void foo() { __c_complex_float x; x = typeof(x).init; // ICE - frontend incorrectly lowers it to the non-existent init symbol }
Without that magic struct enum (enum __c_complex_float : _Complex!float;), all works fine, because .init is correctly lowered to a literal:
enum __c_complex_float : _Complex!float;
.init
import core.stdc.config; void foo() { _Complex!float x; x = typeof(x).init; // fine, assignment to a zero-initialized literal }
Sorry, something went wrong.
No branches or pull requests
import std.stdio;
import core.stdc.config;
void main() {
__c_complex_float[] xxx = new __c_complex_float[10];
writeln(xxx);
}
results in "Error: no init symbol for zero-initialized struct".
it works with dmd.
The text was updated successfully, but these errors were encountered: