d5fdd5afbbe57c31b84ecc1f422a9503baf64510 |
|
13-Oct-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
Teach the warning about unnamed/local types in template arguments to actually walk the template argument type to find any unnamed/local types within it. Fixes PR6784. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/p2.cpp
|
5e513042ca50f0c19e8fa66ced95d8043415b31c |
|
13-Oct-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
Introduce support for emitting diagnostics (warnings + their notes) that are suppressed during template argument deduction. This change queues diagnostics computed during template argument deduction. Then, if the resulting function template specialization or partial specialization is chosen by overload resolution or partial ordering (respectively), we will emit the queued diagnostics at that point. This addresses most of PR6784. However, the check for unnamed/local template arguments (which existed before this change) is still only skin-deep, and needs to be extended to look deeper into types. It must be improved to finish PR6784. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/p2.cpp
|
d7092324128ecd14933040b3854037090a7672da |
|
12-Oct-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
When finalizing a function template specialization following template argument deduction, make sure to check the correctness of deduced template type arguments (which we had previously skipped) along with other kinds of template arguments. This fixes part of PR6784, but we're still swallowing the extension warning about unnamed/local template arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/p2.cpp
|
91305bf1b2e75937fb60db03cca766ad983fffdb |
|
12-Sep-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
Diagnose the instantiation of variables (including static data members) with function type. Fixes PR8047. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/p2.cpp
|