Re: build error --std=c++17 vs --std=c++23 -Wrestrict "may overlap up to 9223372036854775813 bytes at offset -3"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 12/02/2023 01:33, Jonathan Wakely wrote:
> 
> 
> On Sat, 11 Feb 2023, 23:38 Jonny Grant, <jg@xxxxxxxx <mailto:jg@xxxxxxxx>> wrote:
> 
>     Hello
> 
>     Anyone else seeing an issue when using c++23 ?
>     gcc (Ubuntu 12.2.0-3ubuntu1) 12.2.0
> 
>     The only change is to use --std=c++23
> 
> 
> With C++17 std::string is instantiated in the library, not in your code. With C++20 your code instantiates it. That's the only reason the -std option matters here.

Ok I see.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux