[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 269352] endless loop in CppClassType::toString with template types e.g. from Eigen
From:       Milian Wolff <mail () milianw ! de>
Date:       2012-03-30 14:33:49
Message-ID: bug-269352-40295-JWWT8mhJcF () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=269352

Milian Wolff <mail@milianw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Milian Wolff <mail@milianw.de> ---
Git commit c7633cdca8c7558720804b42cd91e77bc9043100 by Milian Wolff.
Committed on 30/03/2012 at 16:30.
Pushed by mwolff into branch '4.3'.

workaround infinite loop in template instantiation (fixes e.g. Eigen code)

some template code trips up our instantiation code leading to an
infinite recursion. this patch adds a depth counter to prevent
this.

furthermore, a unit test is added which reproduces this issues reliably
so someone with more knowledge can write a proper fix

M  +15   -3    languages/cpp/cppduchain/templatedeclaration.cpp
M  +2    -0    languages/cpp/cppduchain/templatedeclaration.h
M  +17   -0    languages/cpp/cppduchain/tests/test_duchain.cpp
M  +1    -0    languages/cpp/cppduchain/tests/test_duchain.h

http://commits.kde.org/kdevelop/c7633cdca8c7558720804b42cd91e77bc9043100

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic