mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 21:51:03 +03:00
Co-authored-by: Nick Treleaven <ntrel002@gmail.com>
This commit is contained in:
parent
1fd2fdb84b
commit
13775eb2d1
5 changed files with 17 additions and 12 deletions
|
@ -171,11 +171,12 @@ extern (C++) class StructDeclaration : AggregateDeclaration
|
|||
{
|
||||
Dsymbol s = (*members)[i];
|
||||
s.setFieldOffset(this, &fieldState, isunion);
|
||||
}
|
||||
if (type.ty == Terror)
|
||||
{
|
||||
errors = true;
|
||||
return;
|
||||
if (type.ty == Terror)
|
||||
{
|
||||
errorSupplemental(s.loc, "error on member `%s`", s.toPrettyChars);
|
||||
errors = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (structsize == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue