-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests fail to build on current Debian sid #1829
Comments
gcc 14 on other platforms fails too.
I fear that this product is abandonware. |
It has recent commits though... |
The first problem reduces to this: #include <type_traits>
int main() { } which fails to compile with I don't think there's anything we can do here to fix it, you can complain to gcc? |
That passes on gcc trunk now, so maybe it'll start building with gcc 14.3. |
(note that this isn't related to my problem which still happens on sid where that simple example compiles fine) |
Here's a repro for that one. It appears that gcc 13 and then 14 broke (in different ways) how #if (defined(__cpp_concepts) && __cpp_concepts > 0)
#if __cpp_concepts <= 201507L
#define META_CONCEPT concept bool
#define META_TYPE_CONSTRAINT(...) typename
#else
#define META_CONCEPT concept
#define META_TYPE_CONSTRAINT(...) __VA_ARGS__
#endif
#else
#define META_TYPE_CONSTRAINT(...) typename
#endif
// gcc 13 rejects this because of concept bool
template <typename T>
META_CONCEPT invocable = true;
// gcc 14 rejects this because of invocable F
template <META_TYPE_CONSTRAINT(invocable) F, typename L>
struct apply; |
With GCC 13, With GCC 14, it looks like Maybe in addition to checking |
This is already fixed on the G++ 14 branch. But mostly this is convincing me that we should stop allowing -std=c++14 -fconcepts at all. |
Dropping in from lurking to say that I was thinking the same thing but from range-v3's point of view: we should drop support for TS concepts altogether. |
FYI I've now adjusted 13, 14, and trunk to not define __cpp_concepts at all for -std=c++14 -fconcepts. |
Hello!
I'm investigating the build failure of the range-v3 package in Debian. I tried to build the current git HEAD and it also fails, with the same error:
(there are more errors if compiling with parallel jobs, this is just the first one with
-j1
)Not sure wat env details are important, this is current Debian sid with gcc 14.2.0, I tried to build the git version with a simple
cmake ..
+make -j1
, while the Debian package passes some extra flags. Please let me know if any other info is needed.Please also note that I don't have any knowledge about this software, I'm just trying to make sure the Debian package is not broken (as it's a dep for telegram-desktop).
The text was updated successfully, but these errors were encountered: