<?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>219320</bug_id>
          
          <creation_ts>2020-11-27 12:27:30 -0800</creation_ts>
          <short_desc>[WinCairo][Clang] html/canvas/WebGLDrawBuffers.cpp(77,29): error: non-constant-expression cannot be narrowed from type &apos;WebCore::GraphicsContextGL::(anonymous enum at GraphicsContextGL.h:64:5)&apos; to &apos;GCGLenum&apos; (aka &apos;unsigned int&apos;) in initializer list</short_desc>
          <delta_ts>2020-11-27 12:36:16 -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>Canvas</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>
          <dependson>219256</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1710367</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2020-11-27 12:27:30 -0800</bug_when>
    <thetext>[WinCairo][Clang] html/canvas/WebGLDrawBuffers.cpp(77,29): error: non-constant-expression cannot be narrowed from type &apos;WebCore::GraphicsContextGL::(anonymous enum at GraphicsContextGL.h:64:5)&apos; to &apos;GCGLenum&apos; (aka &apos;unsigned int&apos;) in initializer list [-Wc++11-narrowing]

clang-cl 11 can&apos;t compile WinCairo since r270185.

FAILED: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-950a39b6-27.cpp.obj 
C:\PROGRA~1\LLVM\bin\clang-cl.exe  (...) -c -- WebCore\DerivedSources\unified-sources\UnifiedSource-950a39b6-27.cpp
In file included from WebCore\DerivedSources\unified-sources\UnifiedSource-950a39b6-27.cpp:5:
..\..\Source\WebCore\html/canvas/WebGLDrawBuffers.cpp(77,29): error: non-constant-expression cannot be narrowed from type &apos;WebCore::GraphicsContextGL::(anonymous enum at ..\..\Source\WebCore\platform\graphics\GraphicsContextGL.h:64:5)&apos; to &apos;GCGLenum&apos; (aka &apos;unsigned int&apos;) in initializer list [-Wc++11-narrowing]
        GCGLenum value[1] { (bufs[0] == GraphicsContextGL::BACK) ? GraphicsContextGL::COLOR_ATTACHMENT0 : GraphicsContextGL::NONE };
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..\..\Source\WebCore\html/canvas/WebGLDrawBuffers.cpp(77,29): note: insert an explicit cast to silence this issue
        GCGLenum value[1] { (bufs[0] == GraphicsContextGL::BACK) ? GraphicsContextGL::COLOR_ATTACHMENT0 : GraphicsContextGL::NONE };
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            static_cast&lt;GCGLenum&gt;(                                                                               )
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710368</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2020-11-27 12:35:24 -0800</bug_when>
    <thetext>Committed r270204: &lt;https://trac.webkit.org/changeset/270204&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710370</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-11-27 12:36:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/71767565&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>