]> granicus.if.org Git - clang/commit
Overhaul checking of non-type template arguments that should refer to
authorDouglas Gregor <dgregor@apple.com>
Thu, 1 Apr 2010 18:32:35 +0000 (18:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 1 Apr 2010 18:32:35 +0000 (18:32 +0000)
commitb7a09260204f2079e0f998bf7ee52b95122a4c5d
tree4e8b09d886533551e6ddeea421282d59888cf5a0
parent5d93ed3c7a2dae0a8f422747e269963b3ef11d95
Overhaul checking of non-type template arguments that should refer to
an object or function. Our previous checking was too lax, and ended up
allowing missing or extraneous address-of operators, among other
evils. The new checking provides better diagnostics and adheres more
closely to the standard.

Fixes PR6563 and PR6749.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100125 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/Sema.h
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/temp/temp.arg/temp.arg.nontype/p1.cpp
test/CXX/temp/temp.arg/temp.arg.nontype/p5.cpp
test/CXX/temp/temp.res/temp.local/p1.cpp
test/SemaTemplate/instantiation-default-2.cpp
test/SemaTemplate/temp_arg_nontype.cpp