]> granicus.if.org Git - clang/commit
When diagnosing C++ [temp.expl.spec]p3 in C++98/03 mode, downgrade the
authorDouglas Gregor <dgregor@apple.com>
Sun, 12 Sep 2010 05:24:55 +0000 (05:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 12 Sep 2010 05:24:55 +0000 (05:24 +0000)
commita4d5de539bc2f0cd25d6292e84eaa067591ff792
tree7f6991aca9d4142dab306b98a0331c7fbbd7f656
parent121dc9ab38bda202720c506c26c67457eb967f02
When diagnosing C++ [temp.expl.spec]p3 in C++98/03 mode, downgrade the
error to a warning if we're in a case that would be allowed in
C++0x. This "fixes" PR8084 by making Clang accept more code than GCC
and (non-strict) EDG do.

Also, add the missing test case for the C++0x semantics, which should
have been in r113717.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113718 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/CXX/temp/temp.spec/temp.expl.spec/p2-0x.cpp [new file with mode: 0644]
test/CXX/temp/temp.spec/temp.expl.spec/p2.cpp
test/SemaTemplate/class-template-spec.cpp
test/SemaTemplate/temp_class_spec_neg.cpp