static assert bug

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

static assert bug

Hey guys,
I am not sure if this is the right place to report a bug, but i will try:

I just noticed that in c files the definition for static_assert() is
missing in assert.h

A simple testcase with provided debug information can be found here:

And here is a sump of assert.h for avr if you dont have it in place:

I am using avr-gcc 6.1 and avrlibc 2.0 (all the latest on archlinux).

what is missing is that static_assert() needs to expand to
_Static_assert() for c files (not c++ though).
Similar to this:
#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert _Static_assert


AVR-libc-dev mailing list
[hidden email]

signature.asc (817 bytes) Download Attachment