]> granicus.if.org Git - clang/commit
Scoped enumerations should not be treated as integer types (in the C
authorDouglas Gregor <dgregor@apple.com>
Thu, 5 May 2011 16:13:52 +0000 (16:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 5 May 2011 16:13:52 +0000 (16:13 +0000)
commitb6adf2c889bb17c1be44e6c8e67e3b2762e9cecc
tree879b9eca65b87e21118c0aa6a38cedfba2b58c23
parent4b81cde48b8b56c219e8d665884f5f33139b5eca
Scoped enumerations should not be treated as integer types (in the C
sense). Fixes <rdar://problem/9366066> by eliminating an inconsistency
between C++ overloading (which handled scoped enumerations correctly)
and C binary operator type-checking (which didn't).

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