public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/9943: field reference of enclosing class in an inner class cannot be compiled.
@ 2003-05-03  1:45 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2003-05-03  1:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, julias, nobody

Synopsis: field reference of enclosing class in an inner class cannot be compiled.

State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Sat May  3 01:45:41 2003
State-Changed-Why:
    Still a bug

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9943


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

* java/9943: field reference of enclosing class in an inner class cannot be compiled.
@ 2003-03-04 19:06 julias
  0 siblings, 0 replies; 2+ messages in thread
From: julias @ 2003-03-04 19:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9943
>Category:       java
>Synopsis:       field reference of enclosing class in an inner class cannot be compiled.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 19:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     julia smith
>Release:        unknown-1.0
>Organization:
>Environment:
linux
>Description:
The compiler incorectly identifies "m_opts" as a super class field. It is a field of the embeddeding class, but not a member of the class or the super class being defined.

gcj -c testcase.java
testcase.java: In class `testcase$option':
testcase.java: In constructor `(testcase)':
testcase.java:22: Can't reference `m_opts' before the superclass constructor has been called.
         super(m_opts);
               ^
1 error
>How-To-Repeat:
invoke: gcj -c testcase.java
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-java; name="testcase.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testcase.java"

DQppbXBvcnQgamF2YS51dGlsLio7DQoNCmNsYXNzIHRvb2xvcHQNCnsNCiAgcHVibGljIHRvb2xv
cHQgKEhhc2h0YWJsZSB0KQ0KICB7DQogIH0NCn0NCg0KY2xhc3MgdG9vbA0Kew0KICBwcm90ZWN0
ZWQgSGFzaHRhYmxlIG1fb3B0czsNCn0NCg0KcHVibGljIGNsYXNzIHRlc3RjYXNlIGV4dGVuZHMg
dG9vbA0Kew0KICBjbGFzcyBvcHRpb24gZXh0ZW5kcyB0b29sb3B0DQogIHsNCiAgICBvcHRpb24g
KCkNCiAgICB7DQogICAgICBzdXBlcihtX29wdHMpOw0KICAgIH0NCiAgfQ0KfQ0K


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

end of thread, other threads:[~2003-05-03  1:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03  1:45 java/9943: field reference of enclosing class in an inner class cannot be compiled tromey
  -- strict thread matches above, loose matches on Subject: below --
2003-03-04 19:06 julias

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