segmentation fault on compiling bad program
>Submitter-Id: net
>Originator: rOBie <robie@bzh.net>
>Organization: The Debian Project
>Confidential: no
>Synopsis:
>Severity: non-critical
>Priority: low
>Category: java
>Class: ice-on-illegal-code
>Release: 3.2.1 (Debian) (Debian unstable)
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
host: i386-linux
Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #165635.
Please CC 165635@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/165635 ]
[validated with gcj-3.2.1 prerelease and HEAD CVS 20021103]
---
class Bug165635 {
public static void main (String[] argLigneDeCommande) {
int i=0;
int a;
int b=1;
for (i=a; i<=b; i++){
System.out.println("i = "+i);
}
}
}
---
$ gcj-3.2 -C Bug165635.java
Bug165635.java: In class `Bug165635':
Bug165635.java: In method `Bug165635.main(java.lang.String[])':
Bug165635.java:2: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
>Fix:
Reply to: