diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-04-13 02:38:49 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-04-13 02:38:49 +0000 |
commit | 48c946e5efee7db32efc70b7c9efcf453d217089 (patch) | |
tree | 060dc0589412c1dd1f807276719eb866928fd8a8 /llvm/lib/Target/TargetData.cpp | |
parent | bbe277c4a986f4836fc531c61adf6daa7dfdf1cf (diff) | |
download | bcm5719-llvm-48c946e5efee7db32efc70b7c9efcf453d217089.tar.gz bcm5719-llvm-48c946e5efee7db32efc70b7c9efcf453d217089.zip |
In Microsoft mode, within class scope, if a CXXScopeSpec's type is equal to the type of one of the base classes then downgrade the missing typename error to a warning. Up to now this is the only case I found where MSVC doesn't require "typename" at class scope. Really strange!
This fixes 1 error when parsing the MSVC 2008 header files.
Example:
template<class T> class A {
public:
typedef int TYPE;
};
template<class T> class B : public A<T> {
public:
A<T>::TYPE a; // no typename required because A<T> is a base class.
};
llvm-svn: 129425
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
0 files changed, 0 insertions, 0 deletions