| Summary: | dev-util/source-highlight-3.1.9 fails tests | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
| Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log | ||
|
Description
Agostino Sarubbo
2020-08-26 05:16:20 UTC
Created attachment 656778 [details]
build.log
build log and emerge --info
"""
In file included from test_exception_main.cpp:17:
./stdboosterror.h:7:72: error: parameter declarator cannot be qualified
std_boost_exception(boost::regex_error(boost::regex_constants::error_bad...
~~~~~~~~~~~~~~~~~~~~~~~~^
./stdboosterror.h:14:31: error: member reference base type 'boost::regex_error
(boost::regex_error)' is not a structure or union
return std_boost_exception.what();
~~~~~~~~~~~~~~~~~~~^~~~~
2 errors generated.
"""
Fails here on clang as well.
Looks like
"""
static boost::regex_error
std_boost_exception(boost::regex_error(boost::regex_constants::error_bad_pattern));
"""
ambiguous parsing is resolved differently by gcc and clang. gcc resolves it as declaration of 'std_boost_exception' variable while clang tries to parse it as complex 'std_boost_exception()' function declaration.
Ended up being a gcc bug to accept invalid code: https://gcc.gnu.org/PR86564 Clang's bug report in case it's more complicated than that: https://bugs.llvm.org/show_bug.cgi?id=47316 dev-util/source-highlight will need a fix. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c936b92ef0757dbd6d46123124f4f898babadc8 commit 6c936b92ef0757dbd6d46123124f4f898babadc8 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-08-27 06:59:46 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-08-27 07:00:03 +0000 dev-util/source-highlight: fix tests on clang Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/739036 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../source-highlight-3.1.9-test-clang-p1.patch | 30 +++++++++++++++++ .../source-highlight-3.1.9-test-clang-p2.patch | 39 ++++++++++++++++++++++ .../source-highlight/source-highlight-3.1.9.ebuild | 5 +++ 3 files changed, 74 insertions(+) |