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

GNU Attributes like gnu_attribute_alignment not copied by copy constructor and operator== #233

Open
david-c-wong opened this issue May 15, 2023 · 1 comment

Comments

@david-c-wong
Copy link

david-c-wong commented May 15, 2023

Hi all,

I found a potential issue that GNU attributes are not copied by the copy constructor and operator=() of classes like SgTypeModifier (e.g. https://github.com/rose-compiler/rose/blob/weekly/src/ROSETTA/Grammar/Support.code). Because of that, those attributes will get lost on copying.

Is this intended or a bug that can be fixed?

Thanks!

@tristanvdb
Copy link
Contributor

Hi,
I think we do want to copy these fields. If you have a patch, please open a pull request with me as reviewer.
Thanks,
-Tristan

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