Re: built-in function 'exp' declared as non-function

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

 



On Thu, 11 Apr 2019 at 18:01, phi gcc <phi.gcc@xxxxxxxxx> wrote:
>
> Builtin symbols should be namespaced
> __exp()
>
> and he one who want the builtin short named could (and I guess the
> include math.h) can do that.
>
> #define exp __exp
>
> There is no problem of renaming it because as a user you will never
> set a BP into the builtin.
>
> With the reversed logic, compilers (or normalisation I guess)
> despotically pick a stdlib function name, decide it become a builtin,

No, the language standard picked the name, and reserves "exp" as an
identifier with external linkage if you use any stdlib entity. So
defining another entity with that name and external linkage has
undefined behaviour.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux