case1: #include <string> inline constexpr std::string test(std::string s) noexcept { return s + "xxx"; } int main() { auto s = test(" ...
case1: #include <string> inline constexpr std::string test(std::string s) noexcept { return s + "xxx"; } int main() { auto s = test(" ...
I have written a container class very similar to std::vector. It has a size() member function, which I declared noexcept, const and constexpr. Sinc ...
Last time I've compiled my project by new GCC12 and it gave me warning about bad memmove buffer size. The previous versions of the GCC had not report ...
I have overloaded the 2D subscript operator in one of my classes. And for that I use the -std=c++23 option to compile the program. Now when calling t ...
I have a project where I'm using the datetimepp library and it has been working fine. However I recently did a pacman -Syu and updated gcc. I then com ...
I (or somebody else) is compiling a CUDA program (e.g. vectorAdd from the cuda-api-wrappers library) using CUDA 11.6 and GCC 12.1, with C++17 set as t ...
We're seeing C++ code, that compiles successfully in GCC 11.3 and Visual Studio 2022, have issues with GCC 12.1. The code is on Compiler Explorer: htt ...