Why does arm_cmse.h uses typeof, instead of __typeof__

Asked by Ioannis Glaropoulos on 2018-05-15

In <arm_cmse.h> "typeof" is used instead of "__typeof__" keyword.
When compiling with -std=c99, this gives an error (while no error is given if the c99 option is not present).

I wonder: is it intentional that arm_cmse.h uses typeof, instead of __typeof__?

Thanks

Question information

Language:
English Edit question
Status:
Open
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
2018-05-15
Last reply:
Leo HavmĂžller (leh-p) said : #1

Looks like a bug.
All other headers under lib\gcc\arm-none-eabi\7.2.1\include uses __typeof__.

Ioannis Glaropoulos (ioannisg) said : #2

Shall this be turned into a bug report, then?

Can you help with this problem?

Provide an answer of your own, or ask Ioannis Glaropoulos for more information if necessary.

To post a message you must log in.