public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11533] New: Inlining drops static initialization of inner class
@ 2003-07-15 23:47 jsturm at gcc dot gnu dot org
  2003-07-20  2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jsturm at gcc dot gnu dot org @ 2003-07-15 23:47 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Inlining drops static initialization of inner class
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsturm at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

Compile/run the following with -O3.  Note this is broken in 3.3 also; I haven't
tested earlier versions.

public class Log {
  private static class Singleton {static final Log __instance = new Log();}
  public static Log instance() {
    return Singleton.__instance;
  }
  public String toString() {
    return "Log";
  }
  public static void main(String[] args) {
        System.out.println(Log.instance());
  }
}


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

end of thread, other threads:[~2003-11-12 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
2003-07-20  2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
2003-08-23  0:48 ` dhazeghi at yahoo dot com
2003-11-03 22:44 ` aph at gcc dot gnu dot org
2003-11-12 15:23 ` aph at gcc dot gnu dot org
2003-11-12 15:24 ` 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).