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

List:       kdevelop-bugs
Subject:    [Bug 305220] New: C++: Fails to resolve function-type specialized templates
From:       Juliano F. Ravasi <bugs+kde () juliano ! info>
Date:       2012-08-15 22:15:04
Message-ID: bug-305220-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 305220
          Severity: normal
           Version: git master
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: C++: Fails to resolve function-type specialized
                    templates
    Classification: Unclassified
                OS: Linux
          Reporter: bugs+kde@juliano.info
          Hardware: Compiled Sources
            Status: UNCONFIRMED
         Component: cpp-parser
           Product: kdevelop

Example C++ code:

-----
template <typename K> struct Templ;

template <typename Ret, typename Arg>
struct Templ<Ret(Arg)> {
  typedef Arg type;
};

int main() {
  Templ<void(int)>::type var = 0;  // Templ is unresolved fwd-decl?
}
-----

It seems that the problem only occurs when specializing with function types.
Specializing for other types like 'template<> struct Templ<int>...' works fine.

This seems to be the main problem parsing std::function and std::bind from
C++11.

Reproducible: Always

-- 
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