diff options
author | Keith Seitz <keiths@redhat.com> | 2012-09-10 17:12:53 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2012-09-10 17:12:53 +0000 |
commit | 5b4f6e25c3d9e1d51c35ca0d5000ea0b32b26a81 (patch) | |
tree | 01804b106dd08a6ae2f5eb014cc7b573bb4066b0 /gdb/gdbtypes.h | |
parent | 6d2920c847e9f9719d30f38ae94a8cce221edd97 (diff) |
PR gdb/13483
* gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
(BOOL_CONVERSION_BADNESS): ... this.
* gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
(rank_one_type): Allow all boolean conversions
permitted by the standard.
* gdb.cp/converts.cc (A::A): Add ctor.
(A::member_): Add member.
(enum my_enum): New enumeration.
(main): Add calls to foo1_7 with various
permitted arguments.
* gdb.cp/converts.exp: Add tests for boolean
conversions permitted by the standard.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 991026b92a..73fcbb1965 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1603,8 +1603,8 @@ extern const struct rank FLOAT_CONVERSION_BADNESS; extern const struct rank INT_FLOAT_CONVERSION_BADNESS; /* Badness of conversion of pointer to void pointer. */ extern const struct rank VOID_PTR_CONVERSION_BADNESS; -/* Badness of conversion of pointer to boolean. */ -extern const struct rank BOOL_PTR_CONVERSION_BADNESS; +/* Badness of conversion to boolean. */ +extern const struct rank BOOL_CONVERSION_BADNESS; /* Badness of converting derived to base class. */ extern const struct rank BASE_CONVERSION_BADNESS; /* Badness of converting from non-reference to reference. */ |