Would you mind trying again at head? There have been a lot of changes
recently to arena_impl.h, so I wouldn't be surprised if the problem has
already been fixed.

On Thu, Dec 15, 2022 at 3:27 PM 'Lars Olsson' via Protocol Buffers <
protobuf@googlegroups.com> wrote:

> When compiling a c++ program that uses protobuf, I get:
>
> In file included from /usr/local/include/google/protobuf/arena.h:53,
>                  from /usr/local/include/google/protobuf/message_lite.h:49,
>                  from
> /usr/local/include/google/protobuf/util/delimited_message_util.h:40,
>                  from myprog.cpp:15:
> /usr/local/include/google/protobuf/arena_impl.h:584:19: error: standard
> attributes in middle of decl-specifiers
>   584 |   ABSL_CONST_INIT alignas(
>       |                   ^~~~~~~
> /usr/local/include/google/protobuf/arena_impl.h:584:19: note: standard
> attributes must precede the decl-specifiers to apply to the declaration, or
> follow them to apply to the type
> /usr/local/include/google/protobuf/arena_impl.h:584:19: error: standard
> attributes in middle of decl-specifiers
> /usr/local/include/google/protobuf/arena_impl.h:584:19: note: standard
> attributes must precede the decl-specifiers to apply to the declaration, or
> follow them to apply to the type
>
> I am using gcc 12.2 on an ubuntu machine. Protobuf src is that which was
> available in git on dec 13. I built protobuf using cmake.
>
> Lars
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/e4f6ad9f-a4b9-4a49-9855-e1f559b9d110n%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/e4f6ad9f-a4b9-4a49-9855-e1f559b9d110n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CADqAXr7U4r%3D%2B%3DHEsOsHQDNWPtQrhUOyT7W2BdF6MmsnAzYUKmQ%40mail.gmail.com.

Reply via email to