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

gcc 12.1.0 fails to compile the example #33

Open
chenyulue opened this issue Sep 21, 2022 · 0 comments
Open

gcc 12.1.0 fails to compile the example #33

chenyulue opened this issue Sep 21, 2022 · 0 comments

Comments

@chenyulue
Copy link

My working env is msys2 on Windows, and gcc is of version 12.1.0.

When I compile the example code, an error occurs, which tells:

tau/types:h:22:58: error: size of array 'static_assertion_at_line__LINE__' is negative
22 | #define TAU_STAT_ASSERT1__(cond, line)        typedef char static_assertion_at_line_##line[[(!!(cond)*2-1]
   |                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

However, gcc of version 11.2.0 on windows can compile the example sucessfully.

I have no idea whether this error is related to the gcc of specific version or not.

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

1 participant