[Issue 22322] New: ImportC: struct with floating point members gives bizarre error.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 19 16:35:02 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22322
Issue ID: 22322
Summary: ImportC: struct with floating point members gives
bizarre error.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dave287091 at gmail.com
The following C code fails to compile.
struct S {
float f;
};
struct S2 {
double d;
};
Error: `tupleof` is not a member of `const(S)`
Error: invalid `foreach` aggregate `_error_`
Error: `tupleof` is not a member of `const(S2)`
Error: invalid `foreach` aggregate `_error_`
Note that the error messages do not have source location either!
--
More information about the Digitalmars-d-bugs
mailing list