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

* [Bug java/26095] variable access directed to class of different scope
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-04  0:54 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-04 00:54 -------
IIRC this is because inner classes are not really scoped.


-- 


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


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

* [Bug java/26095] variable access directed to class of different scope
  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
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-04  2:45 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-02-04 02:45 -------
ISTR seeing this one before.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-04 02:45:31
               date|                            |


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


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

* [Bug java/26095] variable access directed to class of different scope
  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
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:53 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2007-01-09 20:48 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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).