The SectionMap constructor always creates a sentinel OutputSectionEntry with an empty name and pattern via insert("",""). The sentinel's RuleHash field stays as std::nullopt. Any code that iterates all output sections and dereferences getRuleHash() will trigger an assertion failure.
optional<T>::operator* called on a disengaged value
The
SectionMapconstructor always creates a sentinelOutputSectionEntrywith an empty name and pattern viainsert("",""). The sentinel'sRuleHashfield stays asstd::nullopt. Any code that iterates all output sections and dereferencesgetRuleHash()will trigger an assertion failure.