From kdevelop-bugs Mon Jun 28 16:55:59 2010 From: Valentin Pavlyuchenko Date: Mon, 28 Jun 2010 16:55:59 +0000 To: kdevelop-bugs Subject: [Bug 243061] New: KDevelop fails to complete a template class constant Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=127774428321729 https://bugs.kde.org/show_bug.cgi?id=243061 Summary: KDevelop fails to complete a template class constant Product: kdevelop Version: SVN Platform: Compiled Sources OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: code completion AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: TheValik@gmail.com Version: SVN (using KDE 4.4.4) OS: Linux In the following code I see "2" as a value of factorial for 2 and upper values. Actually for 2 it is the right answer, but for 3 and up it is wrong. Code: template class fact : public fact { public: static const int res = V * fact::res; }; template <> class fact<1> { public: static const int res = 1; }; int main() { fact<3> a; a. return 0; } Reproducible: Always -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- 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