<?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>273838</bug_id>
          
          <creation_ts>2024-05-07 13:05:18 -0700</creation_ts>
          <short_desc>[JSC] Use simde in JSON</short_desc>
          <delta_ts>2024-05-10 09:25:47 -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>JavaScriptCore</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=273852</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="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>clopez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2033797</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2024-05-07 13:05:18 -0700</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033798</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-07 13:05:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/127688057&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033800</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2024-05-07 13:14:16 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28251</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033934</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-08 00:34:54 -0700</bug_when>
    <thetext>Committed 278494@main (4855c7a1dc42): &lt;https://commits.webkit.org/278494@main&gt;

Reviewed commits have been landed. Closing PR #28251 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034084</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-05-08 13:48:21 -0700</bug_when>
    <thetext>This commit causes GCC 12 to crash.

Confirmed both cross-building for ARM64 with GCC 12.3.0 (from Yocto) as well as building natively for x86_64 with GCC 12.2.0 and GCC 12.3.0 from Debian:

./Source/JavaScriptCore/runtime/JSONObject.cpp: In lambda function:
./Source/JavaScriptCore/runtime/JSONObject.cpp:1124:89: internal compiler error: unexpected expression ‘static_cast&lt;UnsignedType&gt;(&apos;\&quot;&apos;)’ of kind static_cast_expr
 1124 |                 constexpr auto quoteMask = WTF::splatBulk(static_cast&lt;UnsignedType&gt;(&apos;&quot;&apos;));
      |                                                                                         ^
0x7ffb005ff1c9 __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7ffb005ff284 __libc_start_main_impl
	../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See &lt;https://gcc.gnu.org/bugs/&gt; for instructions.


It doesn&apos;t affect GCC 13 ... only version 12.

Will try to report a bug in the GCC bug-tracker and then we have to workaround this somehow here in WebKit for GCC-12 compilers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034101</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-05-08 14:25:56 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #4)
&gt; This commit causes GCC 12 to crash.
&gt; Will try to report a bug in the GCC bug-tracker and then we have to
&gt; workaround this somehow here in WebKit for GCC-12 compilers

Reported bug to GCC at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114997</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034120</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-05-08 15:09:18 -0700</bug_when>
    <thetext>Ok, this was already work-arounded here on https://commits.webkit.org/278511@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034546</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2024-05-10 09:25:47 -0700</bug_when>
    <thetext>*** Bug 273791 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>