https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61691
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't see why you think this is invalid. ~DOMLocalMediaStream() calls ~nsRefPtr<AudioNode> and ~nsRefPtr<AudioNode> uses AudioNode::Release and AudioNode is an incomplete type.