Chris Pavlina
2016-10-06 14:37:15 UTC
Hi Nico,
Officially, bugs should be reported on the bug tracker [1]. However, it
looks like this one has already been reported, some time ago [2]. I'd
like to see this added, myself; perhaps a bit more noise around this
feature will get it :)
[1] https://savannah.nongnu.org/bugs/?group=avr-libc
[2] https://savannah.nongnu.org/bugs/?41689
Officially, bugs should be reported on the bug tracker [1]. However, it
looks like this one has already been reported, some time ago [2]. I'd
like to see this added, myself; perhaps a bit more noise around this
feature will get it :)
[1] https://savannah.nongnu.org/bugs/?group=avr-libc
[2] https://savannah.nongnu.org/bugs/?41689
Hey guys,
I just noticed that in c files the definition for static_assert() is
missing in assert.h
https://gist.github.com/NicoHood/486364ee191313e1a36d91bb33fba9ef
https://gist.github.com/NicoHood/87b6b6b13b3b8c40145a89173d1b91a0
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).
#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert _Static_assert
#endif
Cheers,
Nico
I just noticed that in c files the definition for static_assert() is
missing in assert.h
https://gist.github.com/NicoHood/486364ee191313e1a36d91bb33fba9ef
https://gist.github.com/NicoHood/87b6b6b13b3b8c40145a89173d1b91a0
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).
#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert _Static_assert
#endif
Cheers,
Nico