Work around a clang crash in the nsXPCTestParams constructor
Categories
(Firefox Build System :: Toolchains, defect)
Tracking
(firefox80 fixed)
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: away, Assigned: away)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Mingw builds crash during compilation with clang 11 (possibly clang 10 also) with the symptoms at https://bugs.llvm.org/show_bug.cgi?id=46738.
The underlying issue goes back at least as far as clang 9 but for some reason we haven't triggered it so far.
The combination of clang-11, mingw builds, and the recent constructor refactorings in this file, have revealed a previously unseen compiler crash: https://bugs.llvm.org/show_bug.cgi?id=46738.
The underlying issue is present in older clangs but for some reason we haven't triggered the right conditions for it until now.
For now, the easiest way forward is to move the constructors inline. I don't feel so bad about using a code workaround in this case, because this makes the code read more naturally anyway.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Description
•