Why does arm_cmse.h uses typeof, instead of __typeof__

Asked by Ioannis Glaropoulos

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:
Last reply:
Revision history for this message
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__.

Revision history for this message
Ioannis Glaropoulos (ioannisg) said :
#2

Shall this be turned into a bug report, then?

Revision history for this message
Ioannis Glaropoulos (ioannisg) said :
#3

No further responses, so I turn this into a bug report:

https://bugs.launchpad.net/gcc-arm-embedded/+bug/1773934

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.