[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 221770] kdevelop duchain fails with templates and multiple
From: Ignat Semenov <ragnarokk91 () gmail ! com>
Date: 2010-05-03 11:51:27
Message-ID: 20100503115127.4D3793F169 () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=221770
--- Comment #2 from Ignat Semenov <ragnarokk91 gmail com> 2010-05-03 13:51:23 ---
This is still valid with KDevelop 4.0.0 final. Please consider this as by the
C++ rules it is allowed to use typename keyword here (actually, it's required,
but it compiles fine without typename).
Here is example code:
template <class T>
class A
{
public:
typedef typename T::newIntType intType;
};
This builds fine, but results in a parser error as described above.
template <class T>
class A
{
public:
typedef T::newIntType intType;
};
This does not build with the following error:
example2.cpp:6: error: type ‘T' is not derived from type ‘A<T>'
example2.cpp:6: error: expected ‘;' before ‘intType'
but does not result in a parser 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