]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
c-typeck.c (readonly_error): Improve error for assignment.
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 9 Aug 2007 21:13:30 +0000 (21:13 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Thu, 9 Aug 2007 21:13:30 +0000 (21:13 +0000)
commitd7705934ec047cd09f8d6781749578963c2356ff
treeb8e2cae4b6b7aaaea167906c353dd1247b5b562f
parentd6bc05d4a4d310d7a29e5c8e01be8467cd7eedcb
c-typeck.c (readonly_error): Improve error for assignment.

2007-08-09  Daniel Berlin  <dberlin@dberlin.org>

* c-typeck.c (readonly_error): Improve error for assignment.

* c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
expression.
(pp_c_expression): Ditto.
2007-08-09  Daniel Berlin  <dberlin@dberlin.org>

* typeck2.c (readonly_error): Handle general expressions.
* error.c (dump_expr): Handle POINTER_PLUS_EXPR

From-SVN: r127320
gcc/ChangeLog
gcc/c-pretty-print.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/typeck2.c
gcc/testsuite/gcc.dg/readonly-loc.c [new file with mode: 0644]