[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] static assert bug
From: |
NicoHood |
Subject: |
[avr-libc-dev] static assert bug |
Date: |
Thu, 6 Oct 2016 14:19:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
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:
https://gist.github.com/NicoHood/486364ee191313e1a36d91bb33fba9ef
And here is a sump of assert.h for avr if you dont have it in place:
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).
Similar to this:
#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert _Static_assert
#endif
Cheers,
Nico
signature.asc
Description: OpenPGP digital signature
- [avr-libc-dev] static assert bug,
NicoHood <=