diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-26 00:10:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-26 00:10:35 +0000 |
commit | 97f1f1c46e7ba0a208cef09406ca6301607027e2 (patch) | |
tree | 79f1dac387132f302e9e666c39435eeaabc8ec52 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4555618854c409cb804cd454b97771fa9f2d4b20 (diff) | |
download | bcm5719-llvm-97f1f1c46e7ba0a208cef09406ca6301607027e2.tar.gz bcm5719-llvm-97f1f1c46e7ba0a208cef09406ca6301607027e2.zip |
The injected-class-name of class templates and class template
specializations can be treated as a template. Finally, we can parse
and process the first implementation of Fibonacci I wrote!
Note that this code does not handle all of the cases where
injected-class-names can be treated as templates. In particular,
there's an ambiguity case that we should be able to handle (but
can't), e.g.,
template <class T> struct Base { };
template <class T> struct Derived : Base<int>, Base<char> {
typename Derived::Base b; // error: ambiguous
typename Derived::Base<double> d; // OK
};
llvm-svn: 67720
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions