[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 302061] New: KDevelop shows errors on variadic template argument expansion in "using" declarati
From: Alexander <ashaduri () gmail ! com>
Date: 2012-06-17 14:50:53
Message-ID: bug-302061-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=302061
Bug ID: 302061
Severity: normal
Version: git master
Priority: NOR
Assignee: kdevelop-bugs@kdevelop.org
Summary: KDevelop shows errors on variadic template argument
expansion in "using" declarations
Classification: Unclassified
OS: Linux
Reporter: ashaduri@gmail.com
Hardware: openSUSE RPMs
Status: UNCONFIRMED
Component: Language Support: CPP
Product: kdevelop
I'm using KDevelop/KDevplatform git master from 2012-06-17.
Consider the following code:
template<typename Signature>
struct Signal;
template<typename... ArgTypes>
struct Signal<void(ArgTypes...)> {
using SignatureType = void(ArgTypes...); // ERROR HERE
// the line above is equal to the following, which is properly recognized.
// typedef void SignatureType(ArgTypes...);
};
This code specifies SignatureType as a function type void(ArgTypes...).
KDevelop shows several errors, including
Expected token ';' after 'void' found '('
(which needs a comma before "found" to make sense, I guess).
The error also occurs with:
using SignatureType = void (*) (ArgTypes...); // function pointer type
Thanks,
Alexander
Reproducible: Always
Steps to Reproduce:
Try the code above
Actual Results:
KDevelop shows a red line
Expected Results:
KDevelop should not show a red line
openSUSE 12.1 x86_64, KDE 4.7.2.
--
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