<?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>240322</bug_id>
          
          <creation_ts>2022-05-11 16:59:06 -0700</creation_ts>
          <short_desc>[MSVC] INTERNAL COMPILER ERROR in JSC::IsoCellSet::forEachMarkedCellInParallel since Visual Studio 2022 v17.2.0</short_desc>
          <delta_ts>2022-07-13 17:59:10 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>
          
          <blocked>192295</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>v-apriltan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1868248</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 16:59:06 -0700</bug_when>
    <thetext>[MSVC] INTERNAL COMPILER ERROR in JSC::IsoCellSet::forEachMarkedCellInParallel since Visual Studio 2022 v17.2.0

I upgraded to Visual Studio 2022 v17.2.0 today. It can&apos;t compile the latest WebKit.


[1077/5972] Building CXX object Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\__\__\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-ee8a7a7a-1.cpp.obj
FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-1.cpp.obj 
C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe  [...] -c C:\home\webkit\gb\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-ee8a7a7a-1.cpp
C:\home\webkit\gb\Source\JavaScriptCore\heap\SubspaceInlines.h(102): fatal error C1001: Internal compiler error.
(compiler file &apos;msc1.cpp&apos;, line 1693)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com 
Please choose the Technical Support command on the Visual C++ 
 Help menu, or open the Technical Support help file for more information
C:\home\webkit\gb\Source\JavaScriptCore\heap\Subspace.h(86): note: This diagnostic occurred in the compiler generated function &apos;WTF::Ref&lt;WTF::SharedTask&lt;void(Visitor &amp;)&gt;,WTF::RawPtrTraits&lt;T&gt;&gt; JSC::Subspace::forEachMarkedCellInParallel(const Func &amp;)&apos;
        with
        [
            T=WTF::SharedTask&lt;void(Visitor &amp;)&gt;
        ]
INTERNAL COMPILER ERROR in &apos;C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe&apos;
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information
[1078/5972] Building CXX object Source\ThirdParty\ANGLE\CMakeFiles\ANGLE.dir\src\libANGLE\renderer\d3d\d3d9\StateManager9.cpp.obj
[1079/5972] Building CXX object Source\JavaScriptCore\CMakeFiles\JavaScriptCore.dir\__\__\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f0a787a9-2.cpp.obj
FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-2.cpp.obj 
C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe [...] -c C:\home\webkit\gb\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f0a787a9-2.cpp
C:\home\webkit\gb\Source\JavaScriptCore\heap\IsoCellSetInlines.h(108): fatal error C1001: Internal compiler error.
(compiler file &apos;msc1.cpp&apos;, line 1693)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com 
Please choose the Technical Support command on the Visual C++ 
 Help menu, or open the Technical Support help file for more information
C:\home\webkit\gb\Source\JavaScriptCore\heap\IsoCellSet.h(66): note: This diagnostic occurred in the compiler generated function &apos;WTF::Ref&lt;WTF::SharedTask&lt;void(Visitor &amp;)&gt;,WTF::RawPtrTraits&lt;T&gt;&gt; JSC::IsoCellSet::forEachMarkedCellInParallel(const Func &amp;)&apos;
        with
        [
            T=WTF::SharedTask&lt;void(Visitor &amp;)&gt;
        ]
INTERNAL COMPILER ERROR in &apos;C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe&apos;
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868251</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 17:04:57 -0700</bug_when>
    <thetext>Hi, April. Do you know this? Are you still compiling the latest WebKit in MSVC team?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868275</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 18:13:39 -0700</bug_when>
    <thetext>Hi April,
This looks like same with bug#238988 comment#9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868279</commentid>
    <comment_count>3</comment_count>
      <attachid>459197</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 18:26:37 -0700</bug_when>
    <thetext>Created attachment 459197
repro.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868283</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 18:40:18 -0700</bug_when>
    <thetext>Reported: https://developercommunity.visualstudio.com/t/Visual-Studio-2022-v1720-reports-fata/10039296</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868291</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-11 19:03:02 -0700</bug_when>
    <thetext>Visual Studio 2022 17.3.0 Preview 1.0 also has this problem.
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31424 for x64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869536</commentid>
    <comment_count>6</comment_count>
    <who name="April">v-apriltan</who>
    <bug_when>2022-05-16 18:34:54 -0700</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #1)
&gt; Hi, April. Do you know this? Are you still compiling the latest WebKit in
&gt; MSVC team?

We are testing the latest Webkit, and we can compile it, maybe you could report a  feedback to our team, we have dedicated developers to deal with these kinds of problems, here is the URL link to our report feedback： https://developercommunity.visualstudio.com/report?space=62&amp;entry=problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869538</commentid>
    <comment_count>7</comment_count>
    <who name="April">v-apriltan</who>
    <bug_when>2022-05-16 18:38:37 -0700</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #5)
&gt; Visual Studio 2022 17.3.0 Preview 1.0 also has this problem.
&gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31424 for x64

Yes, we are testing the latest Webkit, our team is reviewing the feedback and will track this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870215</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-18 17:00:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/93537539&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883513</commentid>
    <comment_count>9</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-07-13 17:59:10 -0700</bug_when>
    <thetext>I confirmed Visual Studio 2022 version 17.3 Preview 3 can compile WinCairo successfully.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>459197</attachid>
            <date>2022-05-11 18:26:37 -0700</date>
            <delta_ts>2022-05-11 18:26:37 -0700</delta_ts>
            <desc>repro.cpp</desc>
            <filename>repro.cpp</filename>
            <type>text/plain</type>
            <size>1206</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">Ly8gY2wuZXhlIC1zdGQ6YysrMjAgLWMgcmVwcm8uY3BwCi8vIGh0dHBzOi8vd2Via2l0Lm9yZy9i
LzI0MDMyMgoKbmFtZXNwYWNlIFdURiB7Cgp0ZW1wbGF0ZTx0eXBlbmFtZSBGdW5jdGlvblR5cGU+
IGNsYXNzIFNoYXJlZFRhc2s7CnRlbXBsYXRlPHR5cGVuYW1lIFBhc3NlZFJlc3VsdFR5cGUsIHR5
cGVuYW1lLi4uIEFyZ3VtZW50VHlwZXM+CmNsYXNzIFNoYXJlZFRhc2s8UGFzc2VkUmVzdWx0VHlw
ZSAoQXJndW1lbnRUeXBlcy4uLik+IHsKcHVibGljOgogICAgdHlwZWRlZiBQYXNzZWRSZXN1bHRU
eXBlIFJlc3VsdFR5cGU7CiAgICAKICAgIFNoYXJlZFRhc2soKSB7IH0KICAgIHZpcnR1YWwgflNo
YXJlZFRhc2soKSB7IH0KCiAgICB2aXJ0dWFsIFJlc3VsdFR5cGUgcnVuKEFyZ3VtZW50VHlwZXMu
Li4pID0gMDsKfTsKCn0gLy8gbmFtZXNwYWNlIFdURgoKdXNpbmcgV1RGOjpTaGFyZWRUYXNrOwoK
bmFt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