]> granicus.if.org Git - clang/commit
Return a declaration to the parser when creating a field in C++ so that
authorJohn McCall <rjmccall@apple.com>
Tue, 15 Feb 2011 07:12:36 +0000 (07:12 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 15 Feb 2011 07:12:36 +0000 (07:12 +0000)
commitb25b295fdfc443bdf060e860a21f6f01d9fbdc18
tree8ad2fbfcdf6f22b3b9fd6b194abd2842366d447e
parent9b7da1c46d6d2849f9cb51328d7fcddf2c417672
Return a declaration to the parser when creating a field in C++ so that
the parser will complete the declarator with a valid decl and thus trigger
delayed diagnostics for it.  It certainly looks like we were intentionally
returning null here, but I couldn't find any good reason for it, and there
wasn't a comment, so farewell to all that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125556 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CXX/class.access/p6.cpp