Hi,

I've stumbled upon a regression, and I'm not sure this is a gcc 10 bug
or not. Consider the sample program in [1], a simplification of a real
case out there [2]. It fails to compile in Fedora Rawhide with the
following message:

/tmp/cccbVeNV.s: Assembler messages:
/tmp/cccbVeNV.s:59: Error: symbol `f' is already defined

The example defines two static local pointers to a callback under the
same name in two different inline functions that are not static. I'm
not sure whether this is entirely correct, given that the C version
(removing the extern "C" declaration) throws a warning, but still,
previous versions of g++ produce prefixed static symbols that don't
collide, and the compilation succeeds.

Thoughts?

[1] https://gist.github.com/kevinushey/cfa848be2d39ddd110f893d9b6c5ac9c
[2] 
https://github.com/RcppCore/RcppEigen/blob/master/inst/include/RcppEigenStubs.h

-- 
Iñaki Úcar
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to