This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Solidity · Archive · Week 51 · Dec 15 – 21, 2025

Solidity Compiler v0.8.33 Release

Breakingcompiler

What changed
Bugfixes: TypeChecker: Fix internal error when accessing getters of constant variables.
Production impact
The source does not say.
Try it
Run solc --version to ensure the compiler is now 0.8.33 and recompile any contracts that previously failed with an internal error when accessing constant variable getters.
Source
github.com/argotorg/solidity/releases/tag/v0.8.33

Understand it, then run it

Solidity 0.8.33 fixed an internal error that could happen when you read a constant variable through its automatically generated getter. Before the fix, if a contract had a constant state variable and you called its getter, the compiler could crash instead of compiling. The change only affects the compiler’s internal logic; the language syntax and the way you write contracts stay the same. You can continue to declare and read constants as usual.

Run it now

Todaysolidity
// main.sol
pragma solidity ^0.8.37;

// This contract demonstrates reading a constant variable via its getter.
// The compiler bug fixed in 0.8.33 is no longer triggered.
contract ConstantDemo {
    uint256 public constant ANSWER = 42;

    // The getter for ANSWER is automatically generated.
    // We can call it like a normal function.
    function getAnswer() external view returns (uint256) {
        return ANSWER;
    }
}

Tests

// test.sol
pragma solidity ^0.8.37;
import "./main.sol";

contract ConstantDemoTest {
    ConstantDemo demo;

    constructor() {
        demo = new ConstantDemo();
    }

    function test_getAnswerReturns42() external {
        require(demo.getAnswer() == 42, "Getter did not return 42");
    }

    function test_answerConstantIs42() external {
        require(demo.ANSWER() == 42, "Constant getter did not return 42");
    }
}

The test report when we ran it on Solidity 0.8.37 (solc)

2 of 2 tests passed.

  • test_answerConstantIs4226,382 gas
  • test_getAnswerReturns4226,379 gas
  • ConstantDemoTest: 829 bytes of bytecode, deployed for 259,164 gas

solc 0.8.37 · prague

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed