Compiler Error C0076
Message: Unexpected structure initialization
Possible error cause: Syntax error in the structure initialization
Error correction: Make sure that the syntax is correct.
Example of the error:
PROGRAM MAIN
VAR
st1 : INT := (p1 := 1);
END_VARMessage:
- C0076: Unexpected structure initialization
- C0032: Type 'STRUCT(p1:=1)' cannot be converted to type 'INT'
- C0046: Identifier 'p1' not defined
- C0018: 'p1' is no valid assignment target
Error correction:
st1 : STRUCT1 := (p1:=1,p2:=10);