Compile error when using Boost Spirit from v1.65.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
boost1.65.1 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Compiling an app (in Ubuntu 18.04 [1] with GCC 7) that uses Boost Spirit from v1.65.1 [2] results in the following compiler error:
/usr/include/
template <typename T> struct rank<PHOENIX_
/usr/include/
/usr/include/
template <typename T> struct rank<PHOENIX_
/usr/include/
template <typename T> struct rank<PHOENIX_
Looks like this is a known Boost bug and have been fixed since[3], but Ubuntu 18.04 still has the older version with that bug in it.
[1]: The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04
[2]: The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ apt-cache policy libboost1.65-dev
libboost1.65-dev:
Installed: 1.65.1+
Candidate: 1.65.1+
Version table:
*** 1.65.1+
500 http://
100 /var/lib/
$ gcc --version
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
[3]: https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libboost1.65-dev 1.65.1+
ProcVersionSign
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Jul 5 13:50:23 2018
Dependencies:
InstallationDate: Installed on 2016-04-22 (803 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: boost1.65.1
UpgradeStatus: Upgraded to bionic on 2018-07-04 (0 days ago)