[Top][All Lists]

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

Re: static_assert in G++

From: Reuben Thomas
Subject: Re: static_assert in G++
Date: Thu, 10 Jan 2019 20:21:49 +0000

On Thu, 10 Jan 2019 at 20:08, Bruno Haible <address@hidden> wrote:
Hi Reuben,

>     verify: Fix syntax error with GCC 4.6 in C++ mode.
> This is odd, since the GCC web page on C++11 support:
> https://gcc.gnu.org/projects/cxx-status.html#cxx11
> says that static assertions have been supported for C++ since GCC 4.3:

See the discussion on the mailing list:

Thanks for the pointer!
$ g++-version 6.5.0 -S foo1.cc
$ g++-version 7.4.0 -S foo1.cc
$ g++-version 8.2.0 -S foo1.cc

Good to know it now does work.

-   This will likely be supported by future GCC versions, in C++ mode.
+   This is supported by GCC 6.1.0 and later, in C++ mode.

Would it be good to say something about "by default", so that future readers aren't confused as I was?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]