Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fable.read.Error: Missing a closing ")": #1035

Open
Mintinson opened this issue Dec 26, 2024 · 1 comment
Open

fable.read.Error: Missing a closing ")": #1035

Mintinson opened this issue Dec 26, 2024 · 1 comment

Comments

@Mintinson
Copy link

I'm trying to convert a piece of f77 code to C++. The code was able to be converted successfully with the f2c program, but when I use fable its reporting an error!

fable.read.Error: Missing a closing ")":
  at .\my_optim.f(288):
  |     *                    mu(la), r(m+n+n+2), s(n+1), u(n+1), v(n+1), w(*),|

Here's the part of the code that reported the error:

         DOUBLE PRECISION a(la,n+1), c(la), g(n+1), l((n+1)*(n+2)/2),
     *                    mu(la), r(m+n+n+2), s(n+1), u(n+1), v(n+1), w(*),
     *                    x(n), xl(n), xu(n), x0(n),
     *                    ddot_sl, dnrm2_, linmin,
     *                    acc, alfmin, alpha, f, f0, gs, h1, h2, h3, h4,
     *                    hun, one, t, t0, ten, tol, two, ZERO

Is there any solution or workaround to this problem?

@phyy-nx
Copy link
Contributor

phyy-nx commented Jan 2, 2025

Hi @Mintinson I'm having trouble reproducing this. I tried a minimal version of what you wrote that should be a complete example:

      program prog
         DOUBLE PRECISION a(la,n+1), c(la), g(n+1), l((n+1)*(n+2)/2),
     *                    mu(la), r(m+n+n+2), s(n+1), u(n+1), v(n+1),
     *                    w(*),
     *                    x(n), xl(n), xu(n), x0(n),
     *                    ddot_sl, dnrm2_, linmin,
     *                    acc, alfmin, alpha, f, f0, gs, h1, h2, h3, h4,
     *                    hun, one, t, t0, ten, tol, two, ZERO
      end

fable.cout runs fine on this, however, it doesn't generate these variables as they are not used. So do you have a more complete minimal example I could try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants