Hello,
The ARM GNU toolchain does not like at all "extended characters" (like '²' or '℃') that are completely OK with other GNU toolcahins (for ARM or other architectures).
The problem lies at the C preprocessor 'cpp'...
How can that be?!
Thank you.
Well, when testing on Ubuntu 22 with a custom built gcc version 13.1.0, I got the same error.
It seems that between version 11, where ² is accepted, and version 13 where these characters are rejected, something mischievous has happened...
Something to do with https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1949r7.html ?!?
Hi,I'm struggling to reproduce this. Can you post a testcase and commandline?
Hi there,I've managed to replicate your findings across releases: https://godbolt.org/z/4b85MW441 using `-pedantic -std=c2x` for C and `-pedantic -std=c++23` for C++. Interestingly, C fails from GCC13, wheareas C++ fails from GCC12: although with may just be a symptom of the C23/C++23 suppoert being Work In Progress across all these compiler releases.Are you using `-pedantic`? It seems to work if `-pedantic` is removed. Otherwise, what other command line options are you using?I don't know if this is expected behaviour for `-pedantic`, so I've raised https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112702 . Someone there will know if this is expected or not.You're right, seems to affect GCC regardless of the target backend being used (arm, aarch64, x86, etc.).Thanks,Stam