You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pragma solidity>=0.5.0;
contractIssue102 {
struct S {
int x;
bool b;
}
function() externalpayable {
S memory s; // Allocate new and set default valuesassert(s.x ==0);
assert(s.b ==false);
}
}
$ solc-verify.py issues/Issue102.sol --show-warnings
issues/Issue102.sol:10:9: solc-verify warning: Unhandled default value, verification might fail
Issue102::[fallback]: ERROR
- issues/Issue102.sol:11:9: Assertion might not hold.
- issues/Issue102.sol:12:9: Assertion might not hold.
Issue102::[implicit_constructor]: OK
Errors were found by the verifier.
(Asserts should hold)
The text was updated successfully, but these errors were encountered:
(Asserts should hold)
The text was updated successfully, but these errors were encountered: