Indexer "crashes" at simple example [message #987735] |
Tue, 27 November 2012 19:56 |
Enis Bayramoglu Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
First of all, thank you VERY MUCH for the really nice tool that is Eclipse CDT! After hours of fishing, I've arrived at a seemingly simple piece of code that makes the indexer fail miserably. What's really concerning about this piece of code is that the indexer not only fails to index this code, but it crashes completely. So, even if such a code appears in some corner in a huge code-base, the entire indexing fails just because of that. That's also why it took me a few hours to arrive at the source of the problem. Here's the code:
#include <boost/intrusive/slist.hpp>
#include <boost/checked_delete.hpp>
using boost::intrusive::slist;
template<int dim>
class GaussianHypothesis: public boost::intrusive::slist_base_hook<> {
public:
};
template<int dim>
class MultiHypDist {
public:
void clear() {
// If you don't comment out the next line, the indexer fails miserably
//slist<GaussianHypothesis<dim> >().clear_and_dispose(boost::checked_delete<GaussianHypothesis<dim> >);
}
};
int main() {
slist<GaussianHypothesis<1> > l;
l.clear_and_dispose(boost::checked_delete<GaussianHypothesis<1> >);
}
Note that this code builds and runs without errors, with or without the commented out line.
Is there a way to work around this problem, or should I just modify my code until the indexer doesn't crash anymore?
Note that I've tried to increase the maximum allowed index size a lot and I've given Eclipse 4GB of heap size. I have 64-bit Ubuntu 12.04 installed, but I'm not using eclipse from the default repositories. I've downloaded eclipse juno from the website. So; Eclipse version: 4.2.1, CDT version: 8.1.1.201209170703, GCC version: 4.6.3 (in case it matters anyhow).
[Updated on: Tue, 27 November 2012 22:46] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds