]> granicus.if.org Git - clang/commit
PR35586: Relax two asserts that are overly restrictive
authorErich Keane <erich.keane@intel.com>
Mon, 11 Dec 2017 19:44:28 +0000 (19:44 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 11 Dec 2017 19:44:28 +0000 (19:44 +0000)
commit82c42068d065de5243a306c00fd0b1d601478b9b
tree4f6a96ce3a9c7736f4bc8c586c57e2399c1663a1
parentdfaebed6e3e6b2359983bbfcac99cdcc7d30cc5c
PR35586: Relax two asserts that are overly restrictive

The two asserts are too aggressive.  In C++  mode, an
enum is NOT considered an integral type, but an enum value
is allowed to be an enum.  This patch relaxes the two asserts
to allow the enum value as well (as typechecking does).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/enum-scoped.cpp