[Bug c/61096] error_init lacks a location

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

[Bug c/61096] error_init lacks a location

2014-05-09 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Fri May 9 17:50:25 2014 New Revision: 210280 URL: http://gcc.gnu.org/viewcvs?rev=210280&root=gcc&view=rev Log: PR c/61096 * c-parser.c (c_parser_braced_init): Pass brace_loc to

[Bug c/61096] error_init lacks a location

2014-05-07 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096 --- Comment #3 from Marek Polacek --- Note that there are 3 error_init calls that seem unreachable (?): 6783 6784 if (COMPLETE_TYPE_P (type) && TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) 6785 { 6786 error_init ("variable-sized

[Bug c/61096] error_init lacks a location

2014-05-07 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096 --- Comment #2 from Marek Polacek --- Another testcase: struct { char *v; } s[] = { .v = 0 };

[Bug c/61096] error_init lacks a location

2014-05-07 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61096 Marek Polacek changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED