]> gcc.gnu.org Git - gcc.git/commit
re PR c++/38064 ([c++0x] operator== doesn't work for enum classes)
authorJason Merrill <jason@redhat.com>
Mon, 25 May 2009 23:01:02 +0000 (19:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 May 2009 23:01:02 +0000 (19:01 -0400)
commit550a799d5383a73b52192b71b9234c3efb8be6a9
tree583bc6fb72a9ca524446f8aa253888d047949f48
parent85057983ac31039dff4e0963b789ee6684351868
re PR c++/38064 ([c++0x] operator== doesn't work for enum classes)

PR c++/38064
* typeck.c (cp_build_binary_op): Allow ENUMERAL_TYPE in
arithmetic comparisons.
(cp_common_type): Handle scoped enums.

* call.c (promoted_arithmetic_type_p): Don't use INTEGRAL_TYPE_P.
(add_builtin_candidate, add_builtin_candidates): Likewise.
(convert_like_real): Likewise.
* class.c (check_bitfield_decl): Likewise.
* decl.c (check_static_variable_definition): Likewise.
(compute_array_index_type): Likewise.
* decl2.c (grokbitfield): Likewise.
* init.c (build_new_1): Likewise.
* pt.c (convert_nontype_argument): Likewise.
(current_instantiation): Likewise.
* tree.c (pod_type_p): Likewise.
* typeck.c (build_static_cast_1): Likewise.
(build_reinterpret_cast_1): Likewise.

From-SVN: r147854
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum3.C [new file with mode: 0644]
This page took 0.058433 seconds and 5 git commands to generate.