summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-03 22:38:16 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-03 22:38:16 +0000
commit4f4106ef11967af7e85fb8f2847d52a75e2ace06 (patch)
treeae6a30abb743de5289697d5624977c3689457c4a /gcc/convert.c
parent5a371c77a2ab287f4b2922af4169212e5f3eba05 (diff)
downloadgcc-4f4106ef11967af7e85fb8f2847d52a75e2ace06.tar.gz
2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C++/36607 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE. 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com> PR C++/36607 * g++.dg/expr/cast10.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143909 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index 1a462e7626f..77907bafcb5 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -493,6 +493,7 @@ convert_to_integer (tree type, tree expr)
case INTEGER_TYPE:
case ENUMERAL_TYPE:
case BOOLEAN_TYPE:
+ case OFFSET_TYPE:
/* If this is a logical operation, which just returns 0 or 1, we can
change the type of the expression. */