llvm icon indicating copy to clipboard operation
llvm copied to clipboard

unexpected unqualified-id: __align__

Open jinz2014 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe

It seems that align causes error:

main.cpp: error: expected unqualified-id
struct __align__(4)  test

Describe the solution you would like

No response

Describe alternatives you have considered

No response

Additional context

No response

jinz2014 avatar Oct 18 '24 22:10 jinz2014

https://github.com/CHIP-SPV/chipStar/pull/659/files

jinz2014 avatar Oct 18 '24 22:10 jinz2014

@jinz2014, this looks like a macro defined for CUDA source files. Could you use the alignas specifier for what you're trying to do?

0x12CC avatar Oct 20 '24 22:10 0x12CC

I am not sure what the label 'need info' means. I close the issue since it will not be supported in clang++/icpx.

jinz2014 avatar Oct 21 '24 01:10 jinz2014