diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 84e4a0777..3f8da5018 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2524,6 +2524,7 @@ bool FunctionType::isBareCall() const string FunctionType::externalSignature() const { solAssert(m_declaration != nullptr, "External signature of function needs declaration"); + solAssert(!m_declaration->name().empty(), "Fallback function has no signature."); bool _inLibrary = dynamic_cast(*m_declaration->scope()).isLibrary();