<?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>183190</bug_id>
          
          <creation_ts>2018-02-27 16:22:23 -0800</creation_ts>
          <short_desc>Strange C++ build error in WebCore</short_desc>
          <delta_ts>2018-02-27 16:47:20 -0800</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 Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Fröberg">sfroberg13</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1402467</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Fröberg">sfroberg13</who>
    <bug_when>2018-02-27 16:22:23 -0800</bug_when>
    <thetext>Hello.

Got the following error with latest git version of webkitgtk:

[ 61%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource164.cpp.o
[ 61%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource165.cpp.o
[ 61%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource166.cpp.o
[ 62%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource167.cpp.o
[ 62%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource168.cpp.o
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/move.h:54:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/nested_exception.h:40,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/exception:143,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/new:40,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:24,
                 from /root/WebKit/Source/WebCore/config.h:55,
                 from /root/WebKit/Source/WebCore/bindings/js/JSTextTrackListCustom.cpp:26,
                 from /root/WebKit/build/DerivedSources/WebCore/unified-sources/UnifiedSource165.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/type_traits: In instantiation of &apos;struct std::is_base_of&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;&apos;:
/root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:80:   required from &apos;typename WTF::match_constness&lt;Source, Target&gt;::type&amp; WTF::downcast(Source&amp;) [with Target = WebCore::Document; Source = WebCore::ScriptExecutionContext; typename WTF::match_constness&lt;Source, Target&gt;::type = WebCore::Document]&apos;
/root/WebKit/Source/WebCore/bindings/js/JSWebAnimationCustom.cpp:47:49:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/type_traits:1512:12: error: invalid use of incomplete type &apos;class WebCore::Document&apos;
     struct is_base_of
            ^~~~~~~~~~
In file included from /root/WebKit/Source/WebCore/dom/Node.h:33:0,
                 from /root/WebKit/Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp:23,
                 from /root/WebKit/build/DerivedSources/WebCore/unified-sources/UnifiedSource165.cpp:3:
/root/WebKit/Source/WebCore/dom/TreeScope.h:38:7: note: forward declaration of &apos;class WebCore::Document&apos;
 class Document;
       ^~~~~~~~
In file included from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/Ref.h:34:0,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/VectorTraits.h:24,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/Vector.h:38,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/text/StringImpl.h:32,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/text/UniquedStringImpl.h:29,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/text/SymbolImpl.h:28,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/JavaScriptCore/PrivateName.h:28,
                 from /root/WebKit/build/DerivedSources/ForwardingHeaders/JavaScriptCore/Identifier.h:23,
                 from /root/WebKit/build/DerivedSources/WebCore/JSDOMBindingInternalsBuiltins.h:34,
                 from /root/WebKit/build/DerivedSources/WebCore/WebCoreJSBuiltinInternals.h:39,
                 from /root/WebKit/Source/WebCore/bindings/js/JSDOMGlobalObject.h:29,
                 from /root/WebKit/Source/WebCore/bindings/js/JSDOMWrapper.h:24,
                 from /root/WebKit/build/DerivedSources/WebCore/JSTreeWalker.h:23,
                 from /root/WebKit/Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp:21,
                 from /root/WebKit/build/DerivedSources/WebCore/unified-sources/UnifiedSource165.cpp:3:
/root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/TypeCasts.h: In instantiation of &apos;typename WTF::match_constness&lt;Source, Target&gt;::type&amp; WTF::downcast(Source&amp;) [with Target = WebCore::Document; Source = WebCore::ScriptExecutionContext; typename WTF::match_constness&lt;Source, Target&gt;::type = WebCore::Document]&apos;:
/root/WebKit/Source/WebCore/bindings/js/JSWebAnimationCustom.cpp:47:49:   required from here
/root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:80: error: &apos;value&apos; is not a member of &apos;std::is_base_of&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;&apos;
     return static_cast&lt;typename match_constness&lt;Source, Target&gt;::type&amp;&gt;(source);
                                                                                ^
/root/WebKit/build/DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:12: error: invalid static_cast from type &apos;WebCore::ScriptExecutionContext&apos; to type &apos;WTF::match_constness&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;::type&amp; {aka WebCore::Document&amp;}&apos;
     return static_cast&lt;typename match_constness&lt;Source, Target&gt;::type&amp;&gt;(source);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:6081: Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource165.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:716: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [Makefile:152: all] Error 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1402473</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Fröberg">sfroberg13</who>
    <bug_when>2018-02-27 16:47:20 -0800</bug_when>
    <thetext>Also, the unstable 2.19.91 version was affected too by this but stable 2.18.6 build fine</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>