This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to statement-expression handling for c++/27115

Andreas Schwab writes:
 > Jason Merrill <> writes:
 > > Tested x86_64-pc-linux-gnu, applied to trunk.
 > Breaks java:
 > /tmp/cvs/gcc-20060822/Build/gcc/gcj -B/tmp/cvs/gcc-20060822/Build/ia64-suse-linux/libjava/ -B/tmp/cvs/gcc-20060822/Build/gcc/ -funwind-tables -fclasspath= -fbootclasspath=/tmp/cvs/gcc-20060822/Build/ia64-suse-linux/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -fjni -findirect-dispatch -fno-indirect-classes -c @gnu-java-awt-dnd-peer-gtk.list -fPIC -o .libs/gnu-java-awt-dnd-peer-gtk.o
 > gnu/java/awt/dnd/peer/gtk/ In class '':
 > gnu/java/awt/dnd/peer/gtk/ In constructor '()':
 > gnu/java/awt/dnd/peer/gtk/ internal compiler error: Segmentation fault
 > #0  0x4000000000179051 in voidify_wrapper_expr (wrapper=Cannot access memory at address 0x18
 > )

Ack, my bad.  Testing this patch.


2006-08-22  Andrew Haley  <>

	* decl.c (java_add_stmt): Give the statement list a type.

Index: decl.c
*** decl.c	(revision 116322)
--- decl.c	(working copy)
*************** java_add_stmt (tree new_stmt)
*** 2188,2193 ****
--- 2188,2194 ----
    i = tsi_last (stmts);
    tsi_link_after (&i, new_stmt, TSI_CONTINUE_LINKING);
+   TREE_TYPE (stmts) = void_type_node;
    return current_binding_level->stmts = stmts;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]