public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13252] New: gcj 3.4 bug handling qualified "super"
@ 2003-12-01  2:27 ovid at mailandnews dot com
  2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: ovid at mailandnews dot com @ 2003-12-01  2:27 UTC (permalink / raw)
  To: gcc-bugs

public class One {
   public Object A() {
      return new Object();
   }
}
public class Two extends One {
     public void B () {
          Object obj = Two.super.A();
     }
     public static void main(String[] args)
     {}
}

gcj -c *.java

Two.java:5: error: 'class' or 'this' expected.
                Object obj = Two.super.A ()


javac *.java works fine.

If I make "A" return void:

---
One: public A() {}
Two: public void B {} { Two.super.A(); }
---
I get:

gcj -c *.java
Two.java:5: error: '(' expected.
                Two.super.A ();

The original code I am trying to compile from .java is from jface
(eclipse):

    protected Control createContents(final Composite parent) {
        final Control[] control = new Control[1];
        BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {
            public void run() {
                control[0] = PreferenceDialog.super.createContents(parent);
                // Add the first page
                selectSavedItem();
            }
        });
        return control[0];
    }

This returns a:
org\eclipse\jface\preference\PreferenceDialog.java:294: error: 'class' 
or 'this' expected.
                                control[0] = 
PreferenceDialog.super.createContents(parent);

gcc version 3.4 20031123 (experimental)   (thisiscool win32 build)

-- 
           Summary: gcj 3.4 bug handling qualified "super"
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovid at mailandnews dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug java/13252] gcj 3.4 bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
@ 2003-12-01  3:14 ` pinskia at gcc dot gnu dot org
  2004-01-14  4:32 ` [Bug java/13252] gcj " giovannibajo at libero dot it
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01  3:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-01 03:14 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-01 03:14:27
               date|                            |


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


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

* [Bug java/13252] gcj bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
  2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
@ 2004-01-14  4:32 ` giovannibajo at libero dot it
  2004-01-14  4:40 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-14  4:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-14 04:32 -------
Is this a regression? I have java build online with mainline here.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gcj 3.4 bug handling        |gcj bug handling qualified
                   |qualified "super"           |"super"


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


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

* [Bug java/13252] gcj bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
  2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
  2004-01-14  4:32 ` [Bug java/13252] gcj " giovannibajo at libero dot it
@ 2004-01-14  4:40 ` pinskia at gcc dot gnu dot org
  2004-01-20 15:45 ` pbrook at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-14  4:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-14 04:40 -------
I also confirmed it on 3.0.4, 3.2.3, and 3.3.1 with the same error message so this is not a 
regression.

-- 


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


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

* [Bug java/13252] gcj bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
                   ` (2 preceding siblings ...)
  2004-01-14  4:40 ` pinskia at gcc dot gnu dot org
@ 2004-01-20 15:45 ` pbrook at gcc dot gnu dot org
  2004-04-04 23:28 ` cvs-commit at gcc dot gnu dot org
  2004-08-12 21:01 ` sopwith at redhat dot com
  5 siblings, 0 replies; 8+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-01-20 15:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2004-01-20 15:45 -------
*** Bug 12842 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jv244 at cam dot ac dot uk


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


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

* [Bug java/13252] gcj bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
                   ` (3 preceding siblings ...)
  2004-01-20 15:45 ` pbrook at gcc dot gnu dot org
@ 2004-04-04 23:28 ` cvs-commit at gcc dot gnu dot org
  2004-08-12 21:01 ` sopwith at redhat dot com
  5 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-04 23:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-04-04 23:27 -------
Subject: Bug 13252

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pbrook@gcc.gnu.org	2004-04-04 23:27:51

Modified files:
	gcc/fortran    : ChangeLog f95-lang.c gfortran.h trans-array.c 
	                 trans-common.c trans-const.c trans-const.h 
	                 trans-decl.c trans-expr.c trans-intrinsic.c 
	                 trans-io.c trans-stmt.c trans-types.c 
	                 trans-types.h trans.h 
	gcc/testsuite  : ChangeLog.tree-ssa 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: strarray_1.f90 
	                                                strarray_2.f90 
	                                                strarray_3.f90 
	                                                strarray_4.f90 
	                                                strcommon_1.f90 

Log message:
	PR 13252
	PR 14081
	* f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
	and stack_restore.
	* gfortran.h (struct gfc_charlen): Add backend_decl.
	* trans-array.c (gfc_trans_allocate_temp_array,
	gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
	(gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
	Remove old, broken string handling.
	(gfc_trans_auto_array_allocation, gfc_trans_g77_array,
	gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
	gfc_trans_deferred_array): Handle character arrays.
	* trans-const.c (gfc_conv_const_charlen): New function.
	* trans-const.h (gfc_conv_const_charlen): Add prototype.
	* trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
	as static.
	(gfc_build_dummy_array_decl): Handle arrays with unknown element size.
	(gfc_create_string_length): New function.
	(gfc_get_symbol_decl): Create lengths for character variables.
	(gfc_get_fake_result_decl): Ditto.
	(gfc_build_function_decl): Only set length for assumed length
	character arguments.
	(gfc_trans_dummy_character): New function.
	(gfc_trans_auto_character_variable): Rewrite.
	(gfc_trans_deferred_vars): Handle more types of character variable.
	(gfc_create_module_variable): String lengths have moved.
	(gfc_generate_function_code): Initialize deferred var chain earlier.
	* trans-expr.c (gfc_conv_init_string_length): Rename ...
	(gfc_trans_init_string_length):  ... to this.
	(gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
	gfc_conv_function_call): Update to new format for character variables.
	(gfc_conv_string_length): Remove.
	(gfc_conv_string_parameter): Update assertion.
	* trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
	* trans-io.c (set_string): Use new macro names.
	* trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
	* trans-types.c (gfc_get_character_type): Use existing length expr.
	(gfc_is_nodesc_array): Make public.
	(gfc_get_dtype_cst): Rename ...
	(gfc_get_dtype): ... to this.  Handle unknown size arrays.
	(gfc_get_nodesc_array_type): Use new name.
	(gfc_sym_type): New character variable code.
	(gfc_get_derived_type): Ditto.
	(gfc_get_function_type): Evaluate character variable lengths.
	* trans-types.h (gfc_strlen_kind): Define.
	(gfc_is_nodesc_array): Add prototype.
	* trans.h: Update prototypes.
	(struct lang_type): Update comments.
	(GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
	(GFC_KNOWN_SIZE_STRING_TYPE): Remove.
	testsuite
	* gfortran.fortran-torture/execute/strarray_1.f90: New test.
	* gfortran.fortran-torture/execute/strarray_2.f90: New test.
	* gfortran.fortran-torture/execute/strarray_3.f90: New test.
	* gfortran.fortran-torture/execute/strarray_4.f90: New test.
	* gfortran.fortran-torture/execute/strcommon_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.130&r2=1.1.2.131
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/f95-lang.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.18&r2=1.1.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.11&r2=1.1.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.18&r2=1.1.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-common.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.4&r2=1.1.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-const.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.5&r2=1.1.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-const.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.3&r2=1.1.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.34&r2=1.1.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.20&r2=1.1.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.26&r2=1.1.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.8&r2=1.1.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.15&r2=1.1.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.13&r2=1.1.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-types.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.14&r2=1.1.2.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.213&r2=1.1.2.214
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/strarray_1.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/strarray_2.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/strarray_3.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/strarray_4.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/strcommon_1.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug java/13252] gcj bug handling qualified "super"
  2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
                   ` (4 preceding siblings ...)
  2004-04-04 23:28 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-12 21:01 ` sopwith at redhat dot com
  5 siblings, 0 replies; 8+ messages in thread
From: sopwith at redhat dot com @ 2004-08-12 21:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sopwith at redhat dot com  2004-08-12 21:01 -------
FWIW this is still happening with gcj-3.4.1-20040714

-- 


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


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

* [Bug java/13252] gcj bug handling qualified "super"
       [not found] <bug-13252-7412@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:56 ` tromey at gcc dot gnu dot org
  0 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tromey at gcc dot gnu dot org  2007-01-09 20:45 -------
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=13252


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-01  2:27 [Bug java/13252] New: gcj 3.4 bug handling qualified "super" ovid at mailandnews dot com
2003-12-01  3:14 ` [Bug java/13252] " pinskia at gcc dot gnu dot org
2004-01-14  4:32 ` [Bug java/13252] gcj " giovannibajo at libero dot it
2004-01-14  4:40 ` pinskia at gcc dot gnu dot org
2004-01-20 15:45 ` pbrook at gcc dot gnu dot org
2004-04-04 23:28 ` cvs-commit at gcc dot gnu dot org
2004-08-12 21:01 ` sopwith at redhat dot com
     [not found] <bug-13252-7412@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:56 ` 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).