rose-compiler/rose

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

david-c-wong opened this issue · 1 comments

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!

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