[Bug c/25801] bad diagnostic for increment/decrement of pointer to incomplete array

2014-05-02 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25801 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/25801] bad diagnostic for increment/decrement of pointer to incomplete array

2014-05-02 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25801 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Fri May 2 18:13:43 2014 New Revision: 210013 URL: http://gcc.gnu.org/viewcvs?rev=210013&root=gcc&view=rev Log: PR c/25801 * c-typeck.c (c_size_in_bytes): Update comment. Don't

[Bug c/25801] bad diagnostic for increment/decrement of pointer to incomplete array

2014-04-18 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25801 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c/25801] bad diagnostic for increment/decrement of pointer to incomplete array

2006-01-15 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-16 01:25 --- The problem with the first error message is obvious where it goes wrong (in c-typeck.c): if (!COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (result_type))) { if (code == PREINCREMENT_EX