This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

[Bug libgcj/27268] New: gij could give a warning on senseless code


[forwarded from http://bugs.debian.org/340651]


$ gij test
Segmentation fault
$ cat test.java 
public class test
{
    public test()
    {
        test t = new test();
    }

    public static void main(String argv[])
    {
        new test();
    }
}

while the blackdown runtime prints
Exception in thread "main" java.lang.StackOverflowError
        at test.<init>(test.java)
        at test.<init>(test.java:5)
        at test.<init>(test.java:5)
        at test.<init>(test.java:5)
[...]
and loops forever.


-- 
           Summary: gij could give a warning on senseless code
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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