g++ 10: static declared in extern "C" inline function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux