NO_IMPLICIT_EXTERN_C is not set - leads to C++ compilation errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-arm-none-eabi (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
$ mkdir foo
$ echo "template<typename C> struct Blubber {};" > foo/foo.h
$ echo "#include \"foo.h\"" > foo.cpp
$ arm-none-eabi-g++ -isystem /home/andreas/foo/ foo.cpp -o FOO
In file included from foo.cpp:1:0:
/home/andreas/
template<typename C> struct Blubber {};
^~~~~~~~
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ apt-cache policy gcc-arm-none-eabi
gcc-arm-none-eabi:
Installed: 15:6.3.
Candidate: 15:6.3.
Version table:
*** 15:6.3.
500 http://
100 /var/lib/
The compiler package is usually used in conjunction with newlib and libstdc+
Note that this shortcoming also troubles a lot of people that use the alternative none-eabi compiler available from arm directly: https:/ /bugs.launchpad .net/gcc- arm-embedded/ +bug/1698539 but they show exceptional do-not-care attitude.