public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/18971] New: Can't send messages to methods with arrays as parameters
@ 2004-12-14  0:08 alexander at malmberg dot org
  2004-12-14  0:09 ` [Bug objc/18971] " alexander at malmberg dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: alexander at malmberg dot org @ 2004-12-14  0:08 UTC (permalink / raw)
  To: gcc-bugs

Mainline currently complains:

error: incompatible type for argument 1 of 'test2:'

when you try to send a message to a method with an array argument; i.e. the type
of one of the method's arguments is an array; e.g.:

@implementation Test
-(void) test2: (int [5])a
...

The testcase should make it clear.

-- 
           Summary: Can't send messages to methods with arrays as parameters
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alexander at malmberg dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
@ 2004-12-14  0:09 ` alexander at malmberg dot org
  2004-12-14  0:14 ` alexander at malmberg dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: alexander at malmberg dot org @ 2004-12-14  0:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From alexander at malmberg dot org  2004-12-14 00:09 -------
Created an attachment (id=7731)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7731&action=view)
Testcase.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
  2004-12-14  0:09 ` [Bug objc/18971] " alexander at malmberg dot org
@ 2004-12-14  0:14 ` alexander at malmberg dot org
  2004-12-14  0:16 ` [Bug objc/18971] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: alexander at malmberg dot org @ 2004-12-14  0:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From alexander at malmberg dot org  2004-12-14 00:14 -------
Forgot to mention this:

The testcase compiles ok with gcc "2.95.4 20011002 (Debian prerelease)", "3.2.3
(Debian)", "3.4.2 (Debian 3.4.2-2)", and a mainline snapshot of 2004-09-02.


-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
  2004-12-14  0:09 ` [Bug objc/18971] " alexander at malmberg dot org
  2004-12-14  0:14 ` alexander at malmberg dot org
@ 2004-12-14  0:16 ` pinskia at gcc dot gnu dot org
  2004-12-14  0:50 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-14  0:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-14 00:16 -------
Confirmed, the earliest mainline compiler which I have is 20041019 where it does not work.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-14 00:16:29
               date|                            |
            Summary|Can't send messages to      |[4.0 Regression] Can't send
                   |methods with arrays as      |messages to methods with
                   |parameters                  |arrays as parameters
   Target Milestone|---                         |4.0.0


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (2 preceding siblings ...)
  2004-12-14  0:16 ` [Bug objc/18971] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-12-14  0:50 ` pinskia at gcc dot gnu dot org
  2004-12-23 22:11 ` zlaski at apple dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-14  0:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-14 00:50 -------
Caused by the large patch:
2004-09-07  Ziemowit Laski  <zlaski@apple.com>
        

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlaski at apple dot com


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (3 preceding siblings ...)
  2004-12-14  0:50 ` pinskia at gcc dot gnu dot org
@ 2004-12-23 22:11 ` zlaski at apple dot com
  2004-12-24 22:16 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: zlaski at apple dot com @ 2004-12-23 22:11 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |zlaski at apple dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2004-12-14 00:16:29         |2004-12-23 22:11:14
               date|                            |


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (4 preceding siblings ...)
  2004-12-23 22:11 ` zlaski at apple dot com
@ 2004-12-24 22:16 ` pinskia at gcc dot gnu dot org
  2004-12-30 10:18 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-24 22:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-24 22:16 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01907.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (5 preceding siblings ...)
  2004-12-24 22:16 ` pinskia at gcc dot gnu dot org
@ 2004-12-30 10:18 ` cvs-commit at gcc dot gnu dot org
  2004-12-30 14:51 ` pinskia at gcc dot gnu dot org
  2005-01-04  1:17 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-30 10:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-30 10:18 -------
Subject: Bug 18971

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	zlaski@gcc.gnu.org	2004-12-30 10:18:18

Modified files:
	gcc/objc       : ChangeLog objc-act.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/objc.dg: encode-5.m 

Log message:
	[gcc/objc/ChangeLog]
	2004-12-30  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/18971
	* objc-act.c (get_arg_type_list, start_method_def): Decay
	array arguments into pointers.
	(gen_type_name_0): Learn to pretty-print array types.
	
	[gcc/testsuite/ChangeLog]
	2004-12-30  Alexander Malmberg  <alexander@malmberg.org>
	Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/18971
	* objc.dg/encode-5.m: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/ChangeLog.diff?cvsroot=gcc&r1=1.21&r2=1.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&r1=1.258&r2=1.259
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4828&r2=1.4829
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/encode-5.m.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (6 preceding siblings ...)
  2004-12-30 10:18 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-30 14:51 ` pinskia at gcc dot gnu dot org
  2005-01-04  1:17 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30 14:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 14:51 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug objc/18971] [4.0 Regression] Can't send messages to methods with arrays as parameters
  2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
                   ` (7 preceding siblings ...)
  2004-12-30 14:51 ` pinskia at gcc dot gnu dot org
@ 2005-01-04  1:17 ` cvs-commit at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-04  1:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-04 01:17 -------
Subject: Bug 18971

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-ppc-branch
Changes by:	zlaski@gcc.gnu.org	2005-01-04 01:16:58

Modified files:
	gcc/objc       : ChangeLog.apple-ppc objc-act.c 
	gcc/testsuite  : ChangeLog.apple-ppc 
Added files:
	gcc/testsuite/objc.dg: encode-5.m 

Log message:
	[gcc/objc/ChangeLog.apple-ppc]
	2005-01-03  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3926282 (PR objc/18971)
	* objc-act.c (get_arg_type_list, start_method_def): Decay
	array arguments into pointers.
	(gen_type_name_0): Learn to pretty-print array types.
	
	[gcc/testsuite/ChangeLog.apple-ppc]
	2005-01-03  Alexander Malmberg  <alexander@malmberg.org>
	Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3926282 (PR objc/18971)
	* objc.dg/encode-5.m: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.7&r2=1.1.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.137.2.33.2.20&r2=1.137.2.33.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.71&r2=1.1.2.72
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/encode-5.m.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=NONE&r2=1.1.2.1



-- 


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-04  1:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14  0:08 [Bug objc/18971] New: Can't send messages to methods with arrays as parameters alexander at malmberg dot org
2004-12-14  0:09 ` [Bug objc/18971] " alexander at malmberg dot org
2004-12-14  0:14 ` alexander at malmberg dot org
2004-12-14  0:16 ` [Bug objc/18971] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-12-14  0:50 ` pinskia at gcc dot gnu dot org
2004-12-23 22:11 ` zlaski at apple dot com
2004-12-24 22:16 ` pinskia at gcc dot gnu dot org
2004-12-30 10:18 ` cvs-commit at gcc dot gnu dot org
2004-12-30 14:51 ` pinskia at gcc dot gnu dot org
2005-01-04  1:17 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).