Repository navigation
Commit 2b85a5e
committed
GCC 16 warns that WTF::String was incomplete in a SFINAE context
https://bugs.webkit.org/show_bug.cgi?id=328859
Reviewed by Darin Adler.
PrintStream.h defines printInternal(PrintStream&, String&) inline, before
String is complete. Overload resolution in its body checks whether String
converts to std::span<const char8_t>, which runs the ranges concepts on
the incomplete type, so every file including WTFString.h warns with
-Wsfinae-incomplete. Move the overload out of line.
* Source/WTF/wtf/PrintStream.cpp:
(WTF::printInternal):
* Source/WTF/wtf/PrintStream.h:
Canonical link: https://commits.webkit.org/324672@main1 parent d56b5fc commit 2b85a5e
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
0 commit comments