Closed URZ-HD closed 3 years ago
Fixing the Regex with:
static const std::regex e("^[[:alnum:]][[:alnum:]_.-]*$"); (ws_allocate.cpp:186)
works.
oh damn, which gcc is that? my gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 has no issues with that.
gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
seems to work as well.
we are using currently: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Hi, i'm very sure that the new regex works yesterday. But unfortunately today user have again the same issue. I tested again, it looks like the problem are the brackets [].
For example, this regex works:
std::regex e("^.*$");
this not:
std::regex e("^[.]*$");
This sounds exactly like this problem: https://stackoverflow.com/questions/8060025/is-this-c11-regex-error-me-or-the-compiler So it looks like the regex support in gcc4.8 ist not complete.
I see currently as possible solutions
best, Sven
f7eb93f3b5e0b2fc48301a23f0be7e5d762e08a4 now contains a new cmake switch for boost::regex usage with broken std::regexp
perfect solution. Thanks.
Hi, since the change from boost regex to std:regex i got the following error when using ws_allocate:
I'm using the latest version and compiled with:
best, Sven