<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>278201</bug_id>
          
          <creation_ts>2024-08-15 16:53:03 -0700</creation_ts>
          <short_desc>[WebRTC] rtc::Network must be defined before classes that use it as an instance variable</short_desc>
          <delta_ts>2024-08-25 14:16:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=278629</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2053160</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-15 16:53:03 -0700</bug_when>
    <thetext>rtc::Network must be defined before classes that use it as an instance variable.

New build failure with upstream clang:

/usr/include/c++/v1/__memory/unique_ptr.h:65:19: error: invalid application of &apos;sizeof&apos; to an incomplete type &apos;rtc::Network&apos;
   65 |     static_assert(sizeof(_Tp) &gt;= 0, &quot;cannot delete an incomplete type&quot;);
      |                   ^~~~~~~~~~~
/usr/include/c++/v1/__memory/unique_ptr.h:278:7: note: in instantiation of member function &apos;std::default_delete&lt;rtc::Network&gt;::operator()&apos; requested here
  278 |       __ptr_.second()(__tmp);
      |       ^
/usr/include/c++/v1/__memory/unique_ptr.h:248:71: note: in instantiation of member function &apos;std::unique_ptr&lt;rtc::Network&gt;::reset&apos; requested here
  248 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); }
      |                                                                       ^
In file included from Source/ThirdParty/libwebrtc/Source/webrtc/p2p/base/wrapping_active_ice_controller.cc:11:
In file included from Source/webrtc/p2p/base/wrapping_active_ice_controller.h:18:
In file included from Source/webrtc/p2p/base/active_ice_controller_interface.h:16:
In file included from Source/webrtc/p2p/base/connection.h:42:
Source/webrtc/rtc_base/network.h:192:18: note: in instantiation of member function &apos;std::unique_ptr&lt;rtc::Network&gt;::~unique_ptr&apos; requested here
  192 | class RTC_EXPORT NetworkManagerBase : public NetworkManager {
      |                  ^
Source/webrtc/rtc_base/network.h:192:18: note: in implicit destructor for &apos;rtc::NetworkManagerBase&apos; first required here
In file included from Source/ThirdParty/libwebrtc/Source/webrtc/p2p/base/wrapping_active_ice_controller.cc:11:
In file included from Source/webrtc/p2p/base/wrapping_active_ice_controller.h:18:
In file included from Source/webrtc/p2p/base/active_ice_controller_interface.h:16:
In file included from Source/webrtc/p2p/base/connection.h:38:
Source/webrtc/p2p/base/port_interface.h:31:7: note: forward declaration of &apos;rtc::Network&apos;
   31 | class Network;
      |       ^
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053161</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-08-15 16:53:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/133994317&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053166</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-15 17:05:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32275</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053169</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-15 17:18:06 -0700</bug_when>
    <thetext>Filed upstream WebRTC bug:  &lt;https://issues.webrtc.org/issues/360158397&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054614</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2024-08-21 21:35:31 -0700</bug_when>
    <thetext>Committed 282603@main (a0c0389): https://commits.webkit.org/282603@main

Reviewed commits have been landed. Closing PR #32275 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>