llnl / llnl/rose

c++ frontend issue (EDG_ROSE_Translation)

Open
#286 3 comments 0 reactions 1 assignee View on GitHub

@tristanvdb is already working on this.

Since Jun 28, 2022.

Dominant language
C
Stars
688
Forks
144
PR merge metrics
No merged PRs in 30d

Description

When running any Rose tool (either a tool written by me or prebuilt rose tools,, such as identityTranslator) on some CPP files (not all of them, just those that have templates and other syntactic sugar) I keep getting this issue:
`Error: default reached template_parameter_kind = 11
identityTranslator[1166814] 2.77245s Rose[FATAL]: assertion failed:
identityTranslator[1166814] 2.77254s Rose[FATAL]: ../../../../../../rose/src/frontend/CxxFrontend/EDG/edgRose/edgRose.C:18791
identityTranslator[1166814] 2.77258s Rose[FATAL]: SgExpression* EDG_ROSE_Translation::convert_constant_template_parameter(a_constant_ptr)
identityTranslator[1166814] 2.77260s Rose[FATAL]: required: false`

It's happening on newer versions of Rose (0.11.46.0.1+), on older it's fine (for example, 0.11.46.0.0): both my tool and identityTranslator work fine on both C and CPP files. Both old and new versions of Rose were installed from apt package, so EDG frontend was part of the package.

On my Rose tool I've figured out the line that causes the issue:
`ast = frontend(argv);`
So, it seems like this issue is related to how Rose works with the frontend, not sure how can I debug this issue.
Any help would be useful

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.