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

_Atomic support broken #476

Open
stevetremblett opened this issue Oct 30, 2022 · 2 comments
Open

_Atomic support broken #476

stevetremblett opened this issue Oct 30, 2022 · 2 comments

Comments

@stevetremblett
Copy link

    Hmmmm, I tried, but the implementation is still incorrect, as `typedef _Atomic(_Bool) atomic_bool;` does not parse. This comes from e.g. LLVM `<stdatomic.h>`. I believe that is what my following code handled:
    # This is a bit ugly, but we need to process atomic specifier before qualifiers,
    # since _Atomic(int) has a conflict with _Atomic int.
    def p_declaration_specifiers_no_type_4(self, p):
        """ declaration_specifiers_no_type  : atomic_specifier declaration_specifiers_no_type_opt
        """
        p[0] = self._add_declaration_specifier(p[2], p[1], 'type')

Originally posted by @vit9696 in #430 (comment)

I am witnessing this error on the current release version.

@stevetremblett
Copy link
Author

Screen Shot 2022-10-30 at 8 47 03 AM

@eliben
Copy link
Owner

eliben commented Jan 9, 2023

Please do not post screenshots of code or output. Paste a minimal yet complete reproducer instead.

t-mw added a commit to t-mw/pycparser that referenced this issue Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants