]> granicus.if.org Git - clang/commit
Attach class template attributes to the templated CXXRecordDecl,
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 23 Oct 2011 17:07:16 +0000 (17:07 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 23 Oct 2011 17:07:16 +0000 (17:07 +0000)
commit0661bd0ccae381613c5967cdf2514255e1f92636
tree6fa395be33656e24b544f83accf2f2f9695e4b10
parent59283a001cf2b8f7aea90b2cac48b457dc531ef4
Attach class template attributes to the templated CXXRecordDecl,
instead of silently discarding them.

As a side effect, this improves diagnostics for constexpr class
templates slightly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142755 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp
test/SemaCXX/attr-cxx0x.cpp