From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3924 invoked by alias); 18 Jan 2012 14:25:32 -0000 Received: (qmail 3908 invoked by uid 22791); 18 Jan 2012 14:25:31 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Jan 2012 14:25:18 +0000 From: "tilo at pruetz dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libobjc/51892] New: +initialize is not being called when calling class method via new runtime Date: Wed, 18 Jan 2012 16:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libobjc X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: tilo at pruetz dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-01/txt/msg02011.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51892 Bug #: 51892 Summary: +initialize is not being called when calling class method via new runtime Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: libobjc AssignedTo: unassigned@gcc.gnu.org ReportedBy: tilo@pruetz.net Created attachment 26367 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26367 simple example When calling a class method for the first time the +initialize message should be send to it. This is not the case when the method is send using new runtime methods only. Please find a simple example attached.