<?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>57151</bug_id>
          
          <creation_ts>2011-03-26 08:04:25 -0700</creation_ts>
          <short_desc>Fix compilation with Solaris 10/SunStudio 12 CC in Source/WebCore/bindings/js/JSJavaScriptCallFrameCustom.cpp: ambiguity in ?:</short_desc>
          <delta_ts>2011-03-27 02:54:16 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Taylor">bentaylor.solx86</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>373900</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-26 08:04:25 -0700</bug_when>
    <thetext>in Source/WebCore/bindings/js/JSJavaScriptCallFrameCustom.cpp
on Solaris 10 with Sun Studio 12 CC, the compiler emits this
error

Error: Ambiguous &quot;?:&quot; expression, second operand of type &quot;JSC::JSObject*&quot; and third operand of type &quot;JSC::JSValuePtr&quot; can be converted to one another.

This is from patch 14 of 17 by Thiago Macieria from bug https://bugs.webkit.org/show_bug.cgi?id=24932</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>373901</commentid>
    <comment_count>1</comment_count>
      <attachid>87025</attachid>
    <who name="Ben Taylor">bentaylor.solx86</who>
    <bug_when>2011-03-26 08:13:50 -0700</bug_when>
    <thetext>Created attachment 87025
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

This is a update from patch 14 of 17 in bug https://bugs.webkit.org/show_bug.cgi?id=24932
done by Thiago Macieria.  Compiles correctly on Solaris 10/Sun Studio 12 CC on qt-4.7.2
with webkit enabled.  Patch is against webkit head.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374069</commentid>
    <comment_count>2</comment_count>
      <attachid>87025</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2011-03-27 00:55:28 -0700</bug_when>
    <thetext>Comment on attachment 87025
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

r=me,  i&apos;m surprised this doesn&apos;t fail on other platforms as gcc, et all all seem finicky about ?: operator.

Thanks for the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374076</commentid>
    <comment_count>3</comment_count>
      <attachid>87025</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-27 01:06:04 -0700</bug_when>
    <thetext>Comment on attachment 87025
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

What&apos;s the ambiguity?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374077</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-27 01:06:21 -0700</bug_when>
    <thetext>I see.  OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374091</commentid>
    <comment_count>5</comment_count>
      <attachid>87025</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-27 02:54:12 -0700</bug_when>
    <thetext>Comment on attachment 87025
Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler

Clearing flags on attachment: 87025

Committed r82060: &lt;http://trac.webkit.org/changeset/82060&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374092</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-27 02:54:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>87025</attachid>
            <date>2011-03-26 08:13:50 -0700</date>
            <delta_ts>2011-03-27 02:54:12 -0700</delta_ts>
            <desc>Proposed patch which compiles correctly in qt-4.7.1 with webkit enabled on Solaris 10 with SS12 C++ compiler</desc>
            <filename>webkit-bug-57151-bindings_js_JSJavaScriptCallFrameCustom.cpp.diff</filename>
            <type>text/plain</type>
            <size>1386</size>
            <attacher name="Ben Taylor">bentaylor.solx86</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDgyMDMwKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDMtMjYgIEJlbiBUYXls
b3IgIDxiZW50YXlsb3Iuc29seDg2QGdtYWlsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9NTcxNTEsIHBhdGNoI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