<?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>119081</bug_id>
          
          <creation_ts>2013-07-25 04:54:56 -0700</creation_ts>
          <short_desc>[CMAKE] Enforce c++0x for cmake based ports</short_desc>
          <delta_ts>2013-07-25 13:40:02 -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>WebKit Misc.</component>
          <version>528+ (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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryuan Choi">ryuan.choi</reporter>
          <assigned_to name="Ryuan Choi">ryuan.choi</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>mrobinson</cc>
    
    <cc>mxie</cc>
    
    <cc>paroga</cc>
    
    <cc>rakuco</cc>
    
    <cc>rwlbuis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>911570</commentid>
    <comment_count>0</comment_count>
    <who name="Ryuan Choi">ryuan.choi</who>
    <bug_when>2013-07-25 04:54:56 -0700</bug_when>
    <thetext>In 115339, c++0x was enforced for cmake based ports using WebKit2 (using gcc)

Now, there are build break (below errors) in JSC after FLT upstream

In file included from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGWorklist.h:34:0,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGWorklist.cpp:27:
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/Deque.h: In instantiation of ‘void WTF::Deque&lt;T, inlineCapacity&gt;::append(const U&amp;) [with U = std::nullptr_t; T = WTF::RefPtr&lt;JSC::DFG::Plan&gt;; long unsigned int inlineCapacity = 16ul]’:
/home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGWorklist.cpp:47:35:   required from here
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/Deque.h:424:9: error: no matching function for call to ‘WTF::RefPtr&lt;JSC::DFG::Plan&gt;::RefPtr(const std::nullptr_t&amp;)’
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/Deque.h:424:9: note: candidates are:
In file included from /home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/HashFunctions.h:24:0,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/HashTraits.h:24,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/HashTable.h:28,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/HashMap.h:24,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/runtime/JSCJSValue.h:31,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/runtime/CachedTranscendentalFunction.h:29,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/runtime/VM.h:32,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/runtime/Identifier.h:24,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGDesiredIdentifiers.h:33,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGPlan.h:32,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGWorklist.h:33,
                 from /home/ryuan/workspace/project/webkit/efl-webkit/Source/JavaScriptCore/dfg/DFGWorklist.cpp:27:
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:59:9: note: WTF::RefPtr&lt;T&gt;::RefPtr(WTF::HashTableDeletedValueType) [with T = JSC::DFG::Plan]
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:59:9: note:   no known conversion for argument 1 from ‘const std::nullptr_t’ to ‘WTF::HashTableDeletedValueType’
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:56:51: note: WTF::RefPtr&lt;T&gt;::RefPtr(WTF::PlacementNewAdoptType) [with T = JSC::DFG::Plan]
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:56:51: note:   no known conversion for argument 1 from ‘const std::nullptr_t’ to ‘WTF::PlacementNewAdoptType’
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:98:54: note: template&lt;class U&gt; WTF::RefPtr::RefPtr(const WTF::PassRefPtr&lt;U&gt;&amp;)
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WTF/wtf/RefPtr.h:98:54: note:   template argument deduction/substitution failed:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911571</commentid>
    <comment_count>1</comment_count>
      <attachid>207450</attachid>
    <who name="Ryuan Choi">ryuan.choi</who>
    <bug_when>2013-07-25 05:00:16 -0700</bug_when>
    <thetext>Created attachment 207450
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911572</commentid>
    <comment_count>2</comment_count>
      <attachid>207450</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-07-25 05:03:59 -0700</bug_when>
    <thetext>Comment on attachment 207450
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=207450&amp;action=review

&gt; ChangeLog:9
&gt; +        Enforce c++0x for all cmake based ports to fix build break.

Would be nicer if you mention what revision made this build break.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911573</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-07-25 05:05:00 -0700</bug_when>
    <thetext>Maybe we should get confirmation that C++11 is now an official requirement for JSC. I know it is already the case for WebKit2 but I don&apos;t know that this is the case for JSC.

@ggaren: Do we want to keep supporting older C++ in JSC code or not? If we do, then we should maybe fix the code that was recently introduced instead of enabling C++11.

Note that I don&apos;t mind enabling by default C++11 support for the EFL port. This patch, however, does not only affect the EFL port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911576</commentid>
    <comment_count>4</comment_count>
    <who name="Ryuan Choi">ryuan.choi</who>
    <bug_when>2013-07-25 05:08:29 -0700</bug_when>
    <thetext>Committed r153315: &lt;http://trac.webkit.org/changeset/153315&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911577</commentid>
    <comment_count>5</comment_count>
    <who name="Ryuan Choi">ryuan.choi</who>
    <bug_when>2013-07-25 05:14:01 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Maybe we should get confirmation that C++11 is now an official requirement for JSC. I know it is already the case for WebKit2 but I don&apos;t know that this is the case for JSC.
&gt; 
&gt; @ggaren: Do we want to keep supporting older C++ in JSC code or not? If we do, then we should maybe fix the code that was recently introduced instead of enabling C++11.
&gt; 
&gt; Note that I don&apos;t mind enabling by default C++11 support for the EFL port. This patch, however, does not only affect the EFL port.

You&apos;re right. we need consensus.
If this is not intended, I will revert this.
(Sorry, I was late to see the message.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911578</commentid>
    <comment_count>6</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-07-25 05:20:32 -0700</bug_when>
    <thetext>(In reply to comment #3)
 
&gt; Note that I don&apos;t mind enabling by default C++11 support for the EFL port. This patch, however, does not only affect the EFL port.

Yes, we need to ask other cmake ports also want to enable C++11.

@paroga, mrobinson and Rob, do your ports mind enable C++11 by default ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911583</commentid>
    <comment_count>7</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-07-25 05:51:09 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #3)
&gt; 
&gt; &gt; Note that I don&apos;t mind enabling by default C++11 support for the EFL port. This patch, however, does not only affect the EFL port.
&gt; 
&gt; Yes, we need to ask other cmake ports also want to enable C++11.
&gt; 
&gt; @paroga, mrobinson and Rob, do your ports mind enable C++11 by default ?

Yes, I think that&apos;s fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911585</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2013-07-25 05:51:36 -0700</bug_when>
    <thetext>(In reply to comment #7)
 
&gt; Yes, I think that&apos;s fine.

Sorry. I mean to say, I think that&apos;s fine for GTK+.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>207450</attachid>
            <date>2013-07-25 05:00:16 -0700</date>
            <delta_ts>2013-07-25 05:03:58 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-119081-20130725210008.patch</filename>
            <type>text/plain</type>
            <size>1361</size>
            <attacher name="Ryuan Choi">ryuan.choi</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTUzMzEzCmRpZmYgLS1naXQgYS9Tb3VyY2UvY21ha2UvV2Vi
S2l0SGVscGVycy5jbWFrZSBiL1NvdXJjZS9jbWFrZS9XZWJLaXRIZWxwZXJzLmNtYWtlCmluZGV4
IDk3NWQ3MDgwYWRkM2FiYTMwMzY1ZTA4NGYxYzc5OWYxZjhiMzg0NGIuLmYxMDg1OGE1NTRjMjM3
MzNhM2MxNjcyYTNi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ICAgICAgIFtDTUFLRV0gRW5mb3JjZSBjKysweCBmb3IgY21ha2UgYmFz
ZWQgcG9ydHMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTExOTA4MQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
ICogU291cmNlL2NtYWtlL1dlYktpdEhlbHBlcnMuY21ha2U6CisgICAgICAgIEVuZm9yY2UgYysr
MHggZm9yIGFsbCBjbWFrZSBiYXNlZCBwb3J0cyB0byBmaXggYnVpbGQgYnJlYWsuCisKIDIwMTMt
MDctMjQgIFJ5dWFuIENob2kgIDxyeXVhbi5jaG9pQHNhbXN1bmcuY29tPgogCiAgICAgICAgIFtF
RkxdW0NNQUtFXSBGaXggd3Jvbmcgc3ludGF4IGFib3V0IG9wdGlvbiBjb21tYW5kcwo=
</data>
<flag name="review"
          id="229242"
          type_id="1"
          status="+"
          setter="gyuyoung.kim"
    />
          </attachment>
      

    </bug>

</bugzilla>