[Bug objc/40864] Designated initializers for multi-dimensional arrays fail in Objective-C

2019-07-26 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40864

Eric Gallager  changed:

   What|Removed |Added

 CC||iains at gcc dot gnu.org,
   ||mikestump at comcast dot net

--- Comment #4 from Eric Gallager  ---
cc-ing objc maintainers

[Bug objc/40864] Designated initializers for multi-dimensional arrays fail in Objective-C

2017-07-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40864

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-07-27
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Eric Gallager  ---
Confirmed.

[Bug objc/40864] Designated initializers for multi-dimensional arrays fail in Objective-C

2009-12-29 Thread fxcoudert at gcc dot gnu dot org


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |enhancement
  GCC build triplet|i686-apple-darwin9  |
   GCC host triplet|i686-apple-darwin9  |
 GCC target triplet|i686-apple-darwin9  |


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



[Bug objc/40864] Designated initializers for multi-dimensional arrays fail in Objective-C

2009-12-29 Thread sergei dot yakovlev at gmail dot com


--- Comment #2 from sergei dot yakovlev at gmail dot com  2009-12-29 22:22 
---
@fxcoudert: This is not an enhancement, this is a bug. Objective-C is declared
as a strict superset of C. Everything that works in C should work in
Objective-C. In this case, it doesn't, which means it's a bug.


-- 

sergei dot yakovlev at gmail dot com changed:

   What|Removed |Added

   Severity|enhancement |normal


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



[Bug objc/40864] Designated initializers for multi-dimensional arrays fail in Objective-C

2009-07-26 Thread joseph at codesourcery dot com


--- Comment #1 from joseph at codesourcery dot com  2009-07-26 21:43 ---
Subject: Re:   New: Designated initializers for multi-dimensional
 arrays fail in Objective-C

On Sun, 26 Jul 2009, sergei dot yakovlev at gmail dot com wrote:

 Designated initializers for multi-dimensional arrays work great in C (C99), 
 but
 fail in Objective-C (see example below). Given that Objective-C is proclaimed 
 a
 strict superset of C, I consider this a bug.

This was a property of the old C parser I carefully replicated when 
writing the new one.  I do not know if there exists a C99-based 
specification of ObjC that clarifies what is intended (and note that this 
interacts with the old GNU form of designated initializers as well); I 
took it as given by the implementation at that time.

  /* ??? Following the old parser, [ objc-receiver
 objc-message-args ] is accepted as an initializer,
 being distinguished from a designator by what follows
 the first assignment expression inside the square
 brackets, but after a first array designator a
 subsequent square bracket is for Objective-C taken to
 start an expression, using the obsolete form of
 designated initializer without '=', rather than
 possibly being a second level of designation: in LALR
 terms, the '[' is shifted rather than reducing
 designator to designator-list.  */


-- 


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