[Webkit-unassigned] [Bug 203142] New: [Clang][Windows] Options.cpp(317, 25): error: no matching function for call to 'optionTypeSpecificIndex'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 17 22:24:52 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=203142

            Bug ID: 203142
           Summary: [Clang][Windows] Options.cpp(317,25): error: no
                    matching function for call to
                    'optionTypeSpecificIndex'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

Created attachment 381272

  --> https://bugs.webkit.org/attachment.cgi?id=381272&action=review

compilation error

Since r251226 (Bug 202105)
Clang-cl 8 can't compile WinCairo trunk.


> FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/runtime/Options.cpp.obj 
> C:\PROGRA~1\LLVM\bin\clang-cl.exe  (...) -c ..\..\Source\JavaScriptCore\runtime\Options.cpp
> ..\..\Source\JavaScriptCore\runtime\Options.cpp(294,12): error: variables defined in a constexpr function must be initialized
>     size_t index;
>            ^
> ..\..\Source\JavaScriptCore\runtime\Options.cpp(317,25): error: no matching function for call to 'optionTypeSpecificIndex'
>     FOR_EACH_JSC_OPTION(DEFINE_OPTION_ACCESSORS)
>     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
> ..\..\Source\JavaScriptCore\runtime/OptionsList.h(124,5): note: expanded from macro 'FOR_EACH_JSC_OPTION'
>     v(Bool, useKernTCSM, true, Normal, "Note: this needs to go before other options since they depend on this value.") \
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ..\..\Source\JavaScriptCore\runtime\Options.cpp(311,49): note: expanded from macro 'DEFINE_OPTION_ACCESSORS'
>         return g_jscConfig.type##type_##Options[optionTypeSpecificIndex<OptionTypeID::type_, OptionID::name_>()]; \
>                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ..\..\Source\JavaScriptCore\runtime\Options.cpp(292,18): note: candidate template ignored: substitution failure [with type = JSC::OptionTypeID::Bool, id = JSC::OptionID::useKernTCSM]
> constexpr size_t optionTypeSpecificIndex()
>                  ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191018/9910ebd3/attachment.html>


More information about the webkit-unassigned mailing list