[Bug 1780174] [NEW] Compile error when using Boost Spirit from v1.65.1
Nikita
1780174 at bugs.launchpad.net
Thu Jul 5 04:05:23 UTC 2018
Public bug reported:
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/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: ‘complex’ is not a member of ‘std’
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^~~~~~~
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: ‘complex’ is not a member of ‘std’
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:57: error: template argument 1 is invalid
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:59: error: expected unqualified-id before ‘>’ token
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^
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+dfsg-0ubuntu5
Candidate: 1.65.1+dfsg-0ubuntu5
Version table:
*** 1.65.1+dfsg-0ubuntu5 500
500 http://au.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
$ gcc --version
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
[3]: https://svn.boost.org/trac10/ticket/13240
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libboost1.65-dev 1.65.1+dfsg-0ubuntu5
ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelModules: wl nvidia_modeset nvidia
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)
** Affects: boost1.65.1 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to boost1.65.1 in Ubuntu.
https://bugs.launchpad.net/bugs/1780174
Title:
Compile error when using Boost Spirit from v1.65.1
Status in boost1.65.1 package in Ubuntu:
New
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/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: ‘complex’ is not a member of ‘std’
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^~~~~~~
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: ‘complex’ is not a member of ‘std’
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:57: error: template argument 1 is invalid
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^
/usr/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:59: error: expected unqualified-id before ‘>’ token
template <typename T> struct rank<PHOENIX_STD::complex<T> >
^
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+dfsg-0ubuntu5
Candidate: 1.65.1+dfsg-0ubuntu5
Version table:
*** 1.65.1+dfsg-0ubuntu5 500
500 http://au.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
$ gcc --version
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
[3]: https://svn.boost.org/trac10/ticket/13240
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libboost1.65-dev 1.65.1+dfsg-0ubuntu5
ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18
Uname: Linux 4.15.0-24-generic x86_64
NonfreeKernelModules: wl nvidia_modeset nvidia
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost1.65.1/+bug/1780174/+subscriptions
More information about the foundations-bugs
mailing list