Closed dddejan closed 4 years ago
pragma solidity >=0.5.0; contract A { string constant public s1 = "N1"; string s2 = "N2"; string title; function f(string storage str) internal { require(bytes(str).length > 0); title = str; } constructor() public { f(s2); } }
Currently gives
$ solc-verify.py issue.sol --output . Error while running verifier, details: Parsing ./issue.sol.bpl ./issue.sol.bpl(27,147): Error: undeclared identifier: s1#4 1 name resolution errors detected in ./issue.sol.bpl
Fixed in 21c9123ad3dc83d9dedda10b97ac28bc380ae75a
Currently gives