gij.cc says:
       else if (! strcmp (arg, "-enableassertions") || ! strcmp (arg, "-ea"))
         {
           if (i >= argc - 1)
             goto no_arg;
           // FIXME: hook up assertion support
           ++i;
           continue;
         }

I think the ++i shouldn't be there.
since -ea doesn't take an arg, does it?
Try, for instance, "gij -ea -classpath Bar.jar Foo"
the -ea processing is swallowing the -classpath arg and gij 
complains about not being able to load the class Bar.jar.

-- 
           Summary: gij swallows args after -ea
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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

Reply via email to