https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61259
Pavel M <pavel.morozkin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pavel.morozkin at gmail dot com
--- Comment #13 from Pavel M <pavel.morozkin at gmail dot com> ---
Same here.
My MRE:
#include <string>
class bar
{
public:
bar(std::string x = ""){}
};
void foo(char **arr)
{
bar bar1( std::string(arr[0])+"" );
}
compiled with gcc 15.2 -pedantic produces:
<source>:9:29: warning: ISO C++ forbids zero-size array 'arr' [-Wpedantic]
9 | bar bar1( std::string(arr[0])+"" );