Skip to content

Struct with __attribute__ #47

Closed

Description

@EvgeniyPeshkov

Structures with attributes are parsed incorrectly. For example:

struct __attribute__((packed)) struct1_t {
    static constexpr int A = 1;
    static constexpr int B = 2;
};

It seems to me, that they are taken for function_definition somehow.
This will help to resolve this issue.
Thank you very much.

Activity

  1. Arcanemagus commented on Jun 17, 2019

    @Arcanemagus
  2. Arcanemagus commented on Jun 17, 2019

    @Arcanemagus
  3. EvgeniyPeshkov commented on Jun 17, 2019

    @EvgeniyPeshkov
    Author

    I use the latest version 0.15.0.
    It seems that __attribute__ was fixed for function declarations, but not structs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions