This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36607] [4.3 Regression] Incorrect type diagnostic on substracting casted char pointers



------- Comment #13 from rguenth at gcc dot gnu dot org  2009-06-19 21:44 -------
Subject: Bug 36607

Author: rguenth
Date: Fri Jun 19 21:44:24 2009
New Revision: 148730

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148730
Log:
2009-06-19  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/36607
        * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.

        * g++.dg/expr/cast10.C: New test.

        2009-02-03  Jakub Jelinek  <jakub@redhat.com>

        PR target/35318
        * function.c (match_asm_constraints_1): Skip over
        initial optional % in the constraint.

        * gcc.c-torture/compile/pr35318.c: New test.

        2009-05-20  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/40204
        * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
        recursion if build_int_cst_type returns the same INTEGER_CST as
        arg1.

        * gcc.c-torture/compile/pr40204.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/expr/cast10.C
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr35318.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr40204.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/convert.c
    branches/gcc-4_3-branch/gcc/fold-const.c
    branches/gcc-4_3-branch/gcc/function.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36607


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]