re PR c++/36607 (Incorrect type diagnostic on substracting casted char pointers)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Tue, 3 Feb 2009 22:38:16 +0000 (22:38 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 3 Feb 2009 22:38:16 +0000 (14:38 -0800)
commit6175f5785a720106f5f6c2c051f46aac8a2d7a01
treeae6a30abb743de5289697d5624977c3689457c4a
parentd4f4bc84b0a55234f92c0dcb3289a8ad5816e7cb
re PR c++/36607 (Incorrect type diagnostic on substracting casted char pointers)

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.

From-SVN: r143909
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/cast10.C [new file with mode: 0644]