public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26095]  New: variable access directed to class of different scope
@ 2006-02-03 23:33 cagney at redhat dot com
  2006-02-04  0:54 ` [Bug java/26095] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cagney at redhat dot com @ 2006-02-03 23:33 UTC (permalink / raw)
  To: java-prs

// this should not compile
package samename;

public class WrongScope
{
    public int v1 ()
    {
        class SingleName
        {
            int v1 = 1;
        }
        // Should not compile.
        return new SingleName ().v2;
    }
    public int v2 ()
    {
        class SingleName
        {
            int v2 = 2;
        }
        return new SingleName ().v2;
    }
}


-- 
           Summary: variable access directed to class of different scope
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cagney at redhat dot com


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


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

end of thread, other threads:[~2007-01-09 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03 23:33 [Bug java/26095] New: variable access directed to class of different scope cagney at redhat dot com
2006-02-04  0:54 ` [Bug java/26095] " pinskia at gcc dot gnu dot org
2006-02-04  2:45 ` tromey at gcc dot gnu dot org
2007-01-09 20:53 ` tromey 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).