Bug 227163

Summary: makeUnique cannot be used to instantiate function-local classes
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: Web Template FrameworkAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, ews-watchlist, keith_miller, koivisto, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch none

Description Kimmo Kinnunen 2021-06-18 01:34:13 PDT
makeUnique cannot be used to instantiate function-local classes
This is due to WTF_MAKE_FAST_ALLOCATED causing warn-unused-typedef
Comment 1 Kimmo Kinnunen 2021-06-18 03:08:32 PDT
Created attachment 431764 [details]
Patch
Comment 2 Antti Koivisto 2021-06-18 03:24:06 PDT
Comment on attachment 431764 [details]
Patch

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

> Source/WTF/wtf/FastMalloc.h:446
> +using __thisIsHereToForceASemicolonAfterThisMacro = int UNUSED_TYPE_ALIAS

There is a similar using line in IsoHeap.h. Maybe that needs fixing too?
Comment 3 Kimmo Kinnunen 2021-06-18 04:31:10 PDT
Created attachment 431767 [details]
Patch
Comment 4 Kimmo Kinnunen 2021-06-18 04:40:46 PDT
Created attachment 431768 [details]
Patch
Comment 5 Kimmo Kinnunen 2021-06-21 01:11:09 PDT
Created attachment 431835 [details]
Patch
Comment 6 EWS 2021-06-21 11:48:38 PDT
Committed r279073 (238993@main): <https://commits.webkit.org/238993@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431835 [details].
Comment 7 Radar WebKit Bug Importer 2021-06-21 11:49:28 PDT
<rdar://problem/79573066>