public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/23549] New: gij swallows args after -ea
@ 2005-08-24 19:06 green at redhat dot com
  2005-08-24 19:20 ` [Bug java/23549] " fitzsim at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: green at redhat dot com @ 2005-08-24 19:06 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-09-09  3:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-24 19:06 [Bug java/23549] New: gij swallows args after -ea green at redhat dot com
2005-08-24 19:20 ` [Bug java/23549] " fitzsim at redhat dot com
2005-08-24 22:13 ` fitzsim at redhat dot com
2005-08-24 22:34 ` [Bug libgcj/23549] " pinskia at gcc dot gnu dot org
2005-08-30 16:22 ` cvs-commit at gcc dot gnu dot org
2005-08-30 16:26 ` fitzsim at redhat dot com
2005-09-02 17:15 ` tromey at gcc dot gnu dot org
2005-09-09  1:25 ` cvs-commit at gcc dot gnu dot org
2005-09-09  3:04 ` pinskia 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).