Open
Bug 1928500
Opened 1 month ago
Updated 17 days ago
nsMathMLChar.cpp:875:19: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox134 | --- | affected |
People
(Reporter: ishikawa, Unassigned)
References
(Blocks 1 open bug)
Details
Similar to bug 1927407 ?
In file included from Unified_cpp_layout_mathml0.cpp:2:
/NEW-SSD/NREF-COMM-CENTRAL/mozilla/layout/mathml/nsMathMLChar.cpp: In lambda function:
/NEW-SSD/NREF-COMM-CENTRAL/mozilla/layout/mathml/nsMathMLChar.cpp:875:19: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
875 | const auto& firstFontInList = familyList.list.AsSpan()[0];
| ^~~~~~~~~~~~~~~
/NEW-SSD/NREF-COMM-CENTRAL/mozilla/layout/mathml/nsMathMLChar.cpp:875:63: note: the temporary was destroyed at the end of the full expression ‘familyList.mozilla::StyleFontFamilyList::list.mozilla::StyleArcSlice<mozilla::StyleSingleFontFamily>::AsSpan().mozilla::Span<const mozilla::StyleSingleFontFamily, 18446744073709551615>::operator[](0)’
875 | const auto& firstFontInList = familyList.list.AsSpan()[0];
| ^
I wonder if a global header file changed or something.
This is with GCC :gcc-14 (Debian 14.2.0-1) 14.2.0
Reporter | ||
Updated•1 month ago
|
Blocks: build-gcc-14
You need to log in
before you can comment on or make changes to this bug.
Description
•