I had the same problem when compiling our own code using the ROOT
libraries (Ubuntu 11.04 64bit, gcc version 4.5.2 (Ubuntu/Linaro
4.5.2-8ubuntu4)). The attached preprocessed source file contains kind of
a minimum version to reproduce the code.
The error occurs when compiling this file with
g++ -g -O2 -c Minimum_cpp.cc
but not with
g++ -g -O -c Minimum_cpp.cc
This happens at a few places. all have in common, that they deal with a
object of class A, which had been derived from the ROOT class TObject
and which is stored in an container as TObject* and a dynamic_cast to A*
is done afterwards. The internal compiler error is reported when this
cast is done in connection with an iterator of the container, like
A* obj;
while( (A = dynamic_cast<A*>( next() ) ) { ... }
If the cast and the iterator are seperated, compilation runs through:
A* obj;
TObject* tmp;
while ( (tmp = next() ) { obj = dynamic_cast<A*>(tmp); ... }
** Attachment added: "Preprocessed code to reproduce the problem."
https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/773712/+attachment/2359813/+files/Minimum_cpp.cc
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/773712
Title:
Cannot compile CERN's program ROOT
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/773712/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs