FYI, reported here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93643
On Sun, 9 Feb 2020 at 12:14, Iñaki Ucar wrote:
>
> BTW, I've noticed that, if you remove the extern "C" declaration and
> compile your example as C code with gcc 9.2.1, there's a warning:
>
> broken.c:16:16: warning: ‘f’ is st
BTW, I've noticed that, if you remove the extern "C" declaration and
compile your example as C code with gcc 9.2.1, there's a warning:
broken.c:16:16: warning: ‘f’ is static but declared in inline function
‘f2’ which is not static
16 | static void (*f)();
|^
broken.c:9:16:
On Sun, 9 Feb 2020 at 03:36, Kevin Ushey wrote:
>
> Here's an example program that fails to compile with gcc-10 for me:
>
> https://gist.github.com/kevinushey/cfa848be2d39ddd110f893d9b6c5ac9c
>
> So I think we can conclude this is a gcc-10 bug. It also fails with
> the contracts branch of gcc on g
Here's an example program that fails to compile with gcc-10 for me:
https://gist.github.com/kevinushey/cfa848be2d39ddd110f893d9b6c5ac9c
So I think we can conclude this is a gcc-10 bug. It also fails with
the contracts branch of gcc on godbolt (although with a different
error):
https://godbolt.or
On 8 February 2020 at 16:59, Kevin Ushey wrote:
| It seems like a bug in gcc 10 to me. IIUC, static local variables in
| inline functions should still have internal linkage, and so name
| collisions like this should not occur.
|
| I can work around this by making sure that 'fun' is given differen
It seems like a bug in gcc 10 to me. IIUC, static local variables in
inline functions should still have internal linkage, and so name
collisions like this should not occur.
I can work around this by making sure that 'fun' is given different
names in the RcppEigen stubs; e.g. fun1 and fun2 and so o
On Sat, 8 Feb 2020 at 23:50, Dirk Eddelbuettel wrote:
>
>
> On 8 February 2020 at 22:36, Iñaki Ucar wrote:
> | lme4 fails to compile with this misterious message in Fedora Rawhide
> | with gcc10 (see the build log and more details in [1]). There is no
> | "fun" in lme4, but there are several local
On 8 February 2020 at 22:36, Iñaki Ucar wrote:
| lme4 fails to compile with this misterious message in Fedora Rawhide
| with gcc10 (see the build log and more details in [1]). There is no
| "fun" in lme4, but there are several local definitions of "fun" in
| RcppEigen, used by lme4, under inst/inc