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

List:       kdevelop-bugs
Subject:    [Bug 243061] New: KDevelop fails to complete a template class constant
From:       Valentin Pavlyuchenko <TheValik () gmail ! com>
Date:       2010-06-28 16:55:59
Message-ID: bug-243061-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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 <int V>
class fact : public fact<V-1>
{
public:
    static const int res = V * fact<V-1>::res;
};

template <>
class fact<1>
{
public:
    static const  int res = 1;
};

int main()
{
    fact<3> a;
    a.<invoke autocomplete here>
    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
[prev in list] [next in list] [prev in thread] [next in thread] 

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