public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/47070] New: Error message mentioning _OBJC_INSTANCE_0
@ 2010-12-27 17:33 nicola at gcc dot gnu.org
  2010-12-27 17:34 ` [Bug objc/47070] " nicola at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: nicola at gcc dot gnu.org @ 2010-12-27 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Error message mentioning _OBJC_INSTANCE_0
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nicola@gcc.gnu.org


The following testcase --

#include <objc/NXConstStr.h>

int main (void)
{
  if (@"Test")
    return 0;

  return 1;
}

when compiled with the GNU runtime,

gcc test.m -lobjc -fgnu-runtime -Wall

produces an error message which is correct, but confusing for users --

test.m: In function ‘main’:
test.m:5:7: warning: the address of ‘_OBJC_INSTANCE_0’ will always evaluate as
‘true’ [-Waddress]

The error message is confusing because _OBJC_INSTANCE_0 is the internal name
used for @"Test".

Thanks


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

* [Bug objc/47070] Error message mentioning _OBJC_INSTANCE_0
  2010-12-27 17:33 [Bug objc/47070] New: Error message mentioning _OBJC_INSTANCE_0 nicola at gcc dot gnu.org
@ 2010-12-27 17:34 ` nicola at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: nicola at gcc dot gnu.org @ 2010-12-27 17:34 UTC (permalink / raw)
  To: gcc-bugs

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

Nicola Pero <nicola at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.12.27 17:34:22
     Ever Confirmed|0                           |1

--- Comment #1 from Nicola Pero <nicola at gcc dot gnu.org> 2010-12-27 17:34:22 UTC ---
Confirmed - I get this error message both on GNU/Linux 32bit and Apple 32bit.

Thanks


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

end of thread, other threads:[~2010-12-27 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-27 17:33 [Bug objc/47070] New: Error message mentioning _OBJC_INSTANCE_0 nicola at gcc dot gnu.org
2010-12-27 17:34 ` [Bug objc/47070] " nicola at gcc dot gnu.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).