gcc-11-20230427 is now available

2023-04-27 Thread GCC Administrator via Gcc
Snapshot gcc-11-20230427 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20230427/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

can-be-null can-not-be-null break-instruction for better handling pointers.

2023-04-27 Thread Sławomir Lach
I am not C expert, so be polity. I do not see something similar in C world, but similar techniques in other languages, such like Vala. I suggest to create two new pointer type: 1. can-be-null 2. cannot-be-null (You must find other words to describe it behavior). First enforces to compiler checki

Re: Aw: Re: GCC 13.1 compile error when using CXXFLAGS=-std=c++20

2023-04-27 Thread Jakub Jelinek via Gcc
On Thu, Apr 27, 2023 at 11:35:23AM +0200, Helmut Zeisel wrote: > >Von: "Jakub Jelinek" > >An: "Helmut Zeisel" > >Cc: gcc@gcc.gnu.org > >Betreff: Re: GCC 13.1 compile error when using CXXFLAGS=-std=c++20 > >On Thu, Apr 27, 2023 at 11:09:19AM +0200, Helmut Zeisel via Gcc wrote: > >> I compiled GCC

Aw: Re: GCC 13.1 compile error when using CXXFLAGS=-std=c++20

2023-04-27 Thread Helmut Zeisel via Gcc
>Von: "Jakub Jelinek" >An: "Helmut Zeisel" >Cc: gcc@gcc.gnu.org >Betreff: Re: GCC 13.1 compile error when using CXXFLAGS=-std=c++20 >On Thu, Apr 27, 2023 at 11:09:19AM +0200, Helmut Zeisel via Gcc wrote: >> I compiled GCC 13.1.0 with GCC 12 and had the environment variable CXXFLAGS >> set to -st

Re: GCC 13.1 compile error when using CXXFLAGS=-std=c++20

2023-04-27 Thread Jakub Jelinek via Gcc
On Thu, Apr 27, 2023 at 11:09:19AM +0200, Helmut Zeisel via Gcc wrote: > I compiled GCC 13.1.0 with GCC 12 and had the environment variable CXXFLAGS > set to -std=c++20 > This gives the error (both linux and cygin) > > gcc-13.1.0/libstdc++-v3/src/c++98/bitmap_allocator.cc:51:23: error: ISO C++17

GCC 13.1 compile error when using CXXFLAGS=-std=c++20

2023-04-27 Thread Helmut Zeisel via Gcc
I compiled GCC 13.1.0 with GCC 12 and had the environment variable CXXFLAGS set to -std=c++20 This gives the error (both linux and cygin) gcc-13.1.0/libstdc++-v3/src/c++98/bitmap_allocator.cc:51:23: error: ISO C++17 does not allow dynamic exception specifications 51 | _M_get(size_t __sz) th