Public bug reported:
Binary package hint: gcc-4.3
Running the tests for boost dynamic bitset from svn, g++-4.2 passes all
tests, but g++-4.3 rejects them with an error:
In file included from bitset_test.hpp:26,
from dyn_bitset_unit_tests1.cpp:11:
../../boost/dynamic_bitset/dynamic_bitset.hpp: In member function ‘size_t
boost::dynamic_bitset<Block, Allocator>::count() const’:
../../boost/dynamic_bitset/dynamic_bitset.hpp:1015: error: ‘mode’ cannot appear
in a constant-expression
../../boost/dynamic_bitset/dynamic_bitset.hpp:1015: error: template argument 1
is invalid
../../boost/dynamic_bitset/dynamic_bitset.hpp:1015: error: expected `>' before
‘*’ token
../../boost/dynamic_bitset/dynamic_bitset.hpp:1015: error: expected `(' before
‘*’ token
../../boost/dynamic_bitset/dynamic_bitset.hpp:1015: error: expected
primary-expression before ‘>’ token
I have reduced the problem to a minimal test case, gcc43regression.cpp,
which is attached. If you process this with "g++-4.2 -S
gcc43regression.cpp", it will succeed, but "g++-4.3 -S
gcc43regression.cpp" will fail.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: g++-4.3 4.3.3-5ubuntu4
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gcc-4.3
Uname: Linux 2.6.28-11-generic x86_64
** Affects: gcc-4.3 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug
--
g++-4.3 regression, rejects valid code
https://bugs.launchpad.net/bugs/354305
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs