This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/79017] Old PowerMac G5, MacPorts GCC 5.4, C++11 and "std::log2 has not been declared"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79017

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #6 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Jonathan Wakely from comment #2)
> (In reply to Jeffrey Walton from comment #0)
> > test.cxx:53:21: error: 'llrint' was not declared in this scope
> >            llrint(0.0);
> >                      ^
> > test.cxx:54:23: error: 'llrintf' was not declared in this scope
> >            llrintf(0.0f);
> >                        ^
> > test.cxx:55:23: error: 'llrintl' was not declared in this scope
> >            llrintl(0.0l);
> >                        ^
> > test.cxx:56:22: error: 'llround' was not declared in this scope
> >            llround(0.0);
> >                       ^
> > test.cxx:57:24: error: 'llroundf' was not declared in this scope
> >            llroundf(0.0f);
> >                         ^
> > test.cxx:58:24: error: 'llroundl' was not declared in this scope
> >            llroundl(0.0l);
> >                         ^
> 
> Because these six functions are missing we treat all C99 math functions as
> missing. We could split the checks into two pieces, so we check for these
> separately, which would allow the rest of the C99 math library to be
> imported into namespace std.
> 
> But OS X 10.5.8 is pretty old, and this might not be worth doing if it
> doesn't affect current versions of OS x.

10.5.8 is what I'm still on, too. Iain Sandoe has been committing patches
targeting 10.4 and 10.5 recently, as well. I'd say it's worth doing.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]