[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 286208] New: Parser does not understand definition of function
From: Griwes <griwes () griwes ! info>
Date: 2011-11-09 17:38:11
Message-ID: bug-286208-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=286208
Summary: Parser does not understand definition of function
pointer in specialization
Product: kdevelop
Version: git master
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: cpp-parser
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: griwes@griwes.info
Version: git master (using KDE 4.7.2)
OS: Linux
(example code in Steps to Reproduce)
When I define a function pointer type from template parameters, KDevelop
complains about "unexpected token: '<'", '*' and '...', while the code compiles
fine in G++ 4.6.1.
Reproducible: Always
Steps to Reproduce:
template<typename signature>
class Function;
template<typename ret, typename... Args>
class Function<ret (*)(Args...)> : public Rose::Tuple<ret (*)(Args...),
Args...>
{
};
template<typename c, typename ret, typename... Args>
class Function<ret (c::*)(Args...)> : public Rose::Tuple<ret
(c::*)(Args...), c, Args...>
{
};
Actual Results:
"unexpected token" errors
Expected Results:
parsing given code without an error
--
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