Skip to content

Instantly share code, notes, and snippets.

@nweller
nweller / gist:08856dccf3cfc7b6883e45c8b92d96a6
Created April 27, 2019 21:58
solc 0.5.0+commit.1d4f565a.Emscripten.clang optimizer lockup #2
// This smart contract appears to break compilation, with optimization enabled, using:
// solc 0.5.0+commit.1d4f565a.Emscripten.clang
// This is the default solcjs version still used by the current truffle npm version 5.0.14.
//
// It causes compilation to hang indefinitely for optimization = yes, runs = 200, yul = no/yes.
// See also the similar case
// https://gist.github.com/nweller/f571897ee44a5ada6fd2300e39007edf
//
// Compilation with the same compiler version in http://remix.ethereum.org with optimization also fails to produce a result.
// More recent solcjs versions in remix do not reproduce the erroneous result, so the issue appears to have been fixed.
@nweller
nweller / gist:f571897ee44a5ada6fd2300e39007edf
Last active April 26, 2019 22:35
solc 0.5.0+commit.1d4f565a.Emscripten.clang optimizer lockup
// This smart contract appears to break compilation, with optimization enabled, using:
// solc 0.5.0+commit.1d4f565a.Emscripten.clang
// This is the default solcjs version still used by the current truffle npm version 5.0.14.
//
// It causes an assertion error for optimization = yes, runs = 200, yul = no/yes.
// Other errors that have been observed for variants of this contract:
//
// "RangeError: Maximum call stack size exceeded"
// An Internal Compiler Error
//