Richard Smith
d80b2d57cf
Fix CXXRecordDecl::forallBases to not look through bases which are dependent
...
and defined within the current instantiation, but which are not part of the
current instantiation. Previously, it would look at bases which could be
specialized separately from the current template.
llvm-svn: 168477
2012-11-22 00:24:47 +00:00
Richard Smith
18f07db183
PR13499: Don't try to check whether 'override' has been validly applied until
...
we know whether the function is virtual. But check it as soon as we do know;
in some cases we don't need to wait for an instantiation.
llvm-svn: 161316
2012-08-06 03:25:17 +00:00
Richard Smith
9ca5c42582
Update all tests other than Driver/std.cpp to use -std=c++11 rather than
...
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
2011-10-13 22:29:44 +00:00
Anders Carlsson
3f610c75de
Diagnose when a virtual member function marked final is overridden.
...
llvm-svn: 123916
2011-01-20 16:25:36 +00:00
Anders Carlsson
7c812f5a99
When instantiating member functions, propagate whether the member function is marked 'final' and 'override'.
...
Also, call CheckOverrideControl when instantiating member functions.
llvm-svn: 123900
2011-01-20 06:52:44 +00:00
Anders Carlsson
fa8e5d3d67
When checking for functions marked override, ignore dependent contexts.
...
llvm-svn: 123894
2011-01-20 06:33:26 +00:00
Anders Carlsson
fd83553733
Diagnose virtual member functions marked override but not overriding any virtual member functions.
...
llvm-svn: 123888
2011-01-20 05:57:14 +00:00