3 ms·
Gcc will not issue diagnostic if you return a "void expression" because doing so is valid in C++.
by BruiseLee 10y ago
Gcc will not issue diagnostic if you return a "void expression" because doing so is valid in C++.
- kazinator 10y agoIt could still be a warning, since doing so is dubious in C++ even if it is allowed.