This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


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

gcj/14: Conditional expression in method call doesn't compile



>Number:         14
>Category:       gcj
>Synopsis:       Conditional expression in method call doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 19 21:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Bryce McKinlay
>Release:        gcc version 2.96 19990719 (experimental)
>Organization:
>Environment:
All
>Description:
Using a conditional/ternary expression as a method call
parameter results in the following gcj internal error:

"internal error in check-init: tree code not implemented: min_expr"
>How-To-Repeat:
Sample code follows:

class Conditional
{
  void a()
    {
      int i = 1;
      int j = 2;
      int k = b((i < j) ? i : j);
    }
    
  int b(int i)
    {
      return 3;
    }
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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