commit | bb5e431bf187a9f3cabb72045694fbaea414a702 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Nov 04 03:18:57 2010 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Nov 04 03:18:57 2010 +0000 |
tree | 3974473db573a5084f498a88d6f924744da4a0c0 | |
parent | 0c8209e40b405fd32f047e95aafdc94054406a58 [diff] |
Don't instantiate members not belonging in the semantic context of the template. e.g. for: template <int i> class A { class B *g; }; 'class B' has the template as lexical context but semantically it is introduced in namespace scope. Fixes rdar://8611125 & http://llvm.org/PR8505 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118235 91177308-0d34-0410-b5e6-96231b3b80d8