Closed Bug 1653047 Opened 5 years ago Closed 5 years ago

Work around a clang crash in the nsXPCTestParams constructor

Categories

(Firefox Build System :: Toolchains, defect)

defect

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
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.

Assignee: nobody → dmajor
Status: NEW → ASSIGNED
Pushed by dmajor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7eeab6b9979 Work around a clang crash in the nsXPCTestParams constructor r=sg
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: