diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-01 00:00:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-01 00:00:45 +0000 |
commit | dc13ded6063942ff62f32b234ed016f70774d4f7 (patch) | |
tree | dd406ffc295c68a51fd18d5dcedb156cece86b6e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9dcde4bdec98ae6a0a84afaa00e81edf71e67d77 (diff) | |
download | llvm-dc13ded6063942ff62f32b234ed016f70774d4f7.zip llvm-dc13ded6063942ff62f32b234ed016f70774d4f7.tar.gz llvm-dc13ded6063942ff62f32b234ed016f70774d4f7.tar.bz2 |
Implement C++ DR481, which clarifies that the scope of template
parameters starts at the end of the template-parameter rather than at
the point where the template parameter name is encounted. For example,
given:
typedef unsigned char T;
template<typename T = T> struct X0 { };
The "T" in the default argument refers to the typedef of "unsigned
char", rather than referring to the newly-introduced template type
parameter 'T'.
Addresses <rdar://problem/8122812>.
llvm-svn: 107354
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions