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
+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 Jakub Jelinek <jakub@redhat.com>
* gcc.c (process_command): Update copyright notice dates.
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. */
+2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
+ PR C++/36607
+ * g++.dg/expr/cast10.C: New test.
+
2009-02-03 Joseph Myers <joseph@codesourcery.com>
PR c/35433
--- /dev/null
+// { dg-do compile }
+// This used to error out because we would try to convert m to a short.
+
+
+struct a {};
+void b() {
+ int a::*m;
+ a *c;
+ short p = reinterpret_cast<char*>(&(c->*m)) - reinterpret_cast<char*>(c);
+}