Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpptoxml crash on Qt 4.8.1's QStringBuilder #48

Open
starwing opened this issue Jun 30, 2012 · 1 comment
Open

cpptoxml crash on Qt 4.8.1's QStringBuilder #48

starwing opened this issue Jun 30, 2012 · 1 comment

Comments

@starwing
Copy link

This is a small crash case, from Qt 4.8.1

template <typename T> struct QConcatenable {};
template <typename A, typename B>
class QStringBuilder
{
private:
    typedef QConcatenable<QStringBuilder<A, B> > Concatenable;
    typedef typename Concatenable::ConvertTo ConvertTo;
};

It seems that codemodel.cpp in parser has some issue in findItem, when it find a typedef in middle of a qualified name, it don't resolve it, but ignore it. so typedef ...::ConvertTo ConvertTo cause a dead loop in resolveType func, makes stack overflow :-(

@mkottman
Copy link
Owner

Something similar was done to make it possible to parse Qt 4.8 headers (see this commit), but since lqt does not work with 4.8 (multithreading issues), no attempt was made to parse 4.8.1 headers. I will look at this when I handle the threading issues with 4.8. Any pointers on how to solve this are welcome.

(besides, I will be trying to create a Clang-based tool to do the parsing instead of cpptoxml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants