Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ include(EthPolicy)
eth_policy()

# project name and version should be set after cmake_policy CMP0048
set(PROJECT_VERSION "0.8.32")
set(PROJECT_VERSION "0.8.33")
# OSX target needed in order to support std::visit
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14")
project(solidity VERSION ${PROJECT_VERSION} LANGUAGES C CXX)
Expand Down
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 0.8.33 (2025-12-18)

Bugfixes:
* TypeChecker: Fix internal error when accessing getters of constant variables.


### 0.8.32 (2025-12-18)

Important Bugfixes:
Expand Down
4 changes: 4 additions & 0 deletions docs/bugs_by_version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2081,6 +2081,10 @@
"bugs": [],
"released": "2025-12-18"
},
"0.8.33": {
"bugs": [],
"released": "2025-12-18"
},
"0.8.4": {
"bugs": [
"UnsoundSpillInMutualRecursion",
Expand Down
10 changes: 0 additions & 10 deletions libsolidity/analysis/TypeChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3456,16 +3456,6 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
if (!annotation.isPure.set())
annotation.isPure = false;

if (
auto const* funcType = dynamic_cast<FunctionType const*>(annotation.type);
funcType &&
funcType->kind() != FunctionType::Kind::Declaration &&
funcType->kind() != FunctionType::Kind::Internal &&
funcType->kind() != FunctionType::Kind::Error &&
funcType->kind() != FunctionType::Kind::Event
)
solAssert(funcType->isPure() == *annotation.isPure);

return false;
}

Expand Down
8 changes: 8 additions & 0 deletions test/libsolidity/syntaxTests/constants/access_via_getter.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
contract Counter {
uint256 public constant MIN_LIQUIDITY = 1000;

function run() view public {
this.MIN_LIQUIDITY();
}
}
// ----
8 changes: 8 additions & 0 deletions test/libsolidity/syntaxTests/immutable/access_via_getter.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
contract Counter {
uint256 public immutable MIN_LIQUIDITY = 1000;

function run() view public {
this.MIN_LIQUIDITY();
}
}
// ----
Loading