[Webkit-unassigned] [Bug 192491] New: [WTF] Debug build fails due conflicting abort() method
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 7 02:05:18 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=192491
Bug ID: 192491
Summary: [WTF] Debug build fails due conflicting abort() method
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
When building passing -DCMAKE_BUILD_TYPE=Debug:
- The XMLHttpRequest class defines an ::abort() method (in Source/WebCore/xml/XMLHttpRequest.h)
- The CRASH() and CRASH_UNDER_CONSTEXPR_CONTEXT macros (in Source/WTF/wtf/Assertions.h) call
the abort() function, but inside the code for XMLHttpRequest that would implicitly call
the method. Ugh.
Probably the best solution is to make the macros in Assertions.h use the
namespace (so they expand to std::abort), to avoid the method being picked
when expandin the macros.
Compilation error follows.
----
In file included from DerivedSources/ForwardingHeaders/wtf/StdLibExtras.h:32,
from DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:25,
from ../Source/WebCore/config.h:51,
from CSSValueKeywords.gperf:4,
from DerivedSources/WebCore/unified-sources/UnifiedSource1.cpp:1:
../Source/WebCore/xml/XMLHttpRequest.h: In static member function ‘static void* WebCore::XMLHttpRequest::operator new(size_t, NotNullTag, void*)’:
DerivedSources/ForwardingHeaders/wtf/Assertions.h:244:23: error: cannot call member function ‘void WebCore::XMLHttpRequest::abort()’ without object
#define CRASH() abort()
^
DerivedSources/ForwardingHeaders/wtf/Assertions.h:587:30: note: in expansion of macro ‘CRASH’
#define CRASH_WITH_INFO(...) CRASH()
^~~~~
DerivedSources/ForwardingHeaders/wtf/Assertions.h:323:9: note: in expansion of macro ‘CRASH_WITH_INFO’
CRASH_WITH_INFO(__VA_ARGS__); \
^~~~~~~~~~~~~~~
DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:288:9: note: in expansion of macro ‘ASSERT’
ASSERT(location); \
^~~~~~
DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:294:5: note: in expansion of macro ‘WTF_MAKE_FAST_ALLOCATED_IMPL’
WTF_MAKE_FAST_ALLOCATED_IMPL \DerivedSources/ForwardingHeaders/wtf/Assertions.h:244:23: error: cannot call member function ‘void WebCore::XMLHttpRequest::abort()’ without object
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Source/WebCore/xml/XMLHttpRequest.h:53:5: note: in expansion of macro ‘WTF_MAKE_FAST_ALLOCATED’
WTF_MAKE_FAST_ALLOCATED;
^~~~~~~~~~~~~~~~~~~~~~~
--
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/20181207/f220ae20/attachment.html>
More information about the webkit-unassigned
mailing list