It compiles with g++ 4.1.3 and 4.2.4
[couti...@darkstar tmp]$ cat a.cpp
#include
#include
int main() {
std::cout << "hello world" << std::endl;
}
[couti...@darkstar tmp]$ g++-4.1 --version
g++-4.1 (GCC) 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-24ubuntu1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[couti...@darkstar tmp]$ g++-4.2 --version
g++-4.2 (GCC) 4.2.4 (Ubuntu 4.2.4-5ubuntu1)
[...]
[couti...@darkstar tmp]$ g++-4.3 --version
g++-4.3 (Ubuntu 4.3.3-5ubuntu4) 4.3.3
[...]
[couti...@darkstar tmp]$ g++-4.1 a.cpp
[couti...@darkstar tmp]$ g++-4.2 a.cpp
[couti...@darkstar tmp]$ g++-4.3 a.cpp
In file included from /usr/include/boost/dynamic_bitset.hpp:15,
from a.cpp:2:
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp: In member function
‘size_t boost::dynamic_bitset::count() const’:
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: ‘mode’ cannot
appear in a constant-expression
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: template
argument 1 is invalid
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected `>'
before ‘*’ token
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected `('
before ‘*’ token
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected
primary-expression before ‘>’ token
[couti...@darkstar tmp]$
** Summary changed:
- boost library dynamic_bitset.hpp fails to compile
+ boost library dynamic_bitset.hpp fails to compile with g++ 4.3.3
--
boost library dynamic_bitset.hpp fails to compile with g++ 4.3.3
https://bugs.launchpad.net/bugs/429343
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs