[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43579: g++ does not provide std::fegetround
From: |
Ricardo Wurmus |
Subject: |
bug#43579: g++ does not provide std::fegetround |
Date: |
Wed, 23 Sep 2020 21:03:54 +0200 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
Andreas Enge <andreas@enge.fr> writes:
> Hello,
>
> this report is related to
> https://github.com/fplll/fplll/issues/444
>
> The following test file round.cpp does not compile with our g++-10.2.0:
> #include <cfenv>
> int main () {
> return std::fegetround ();
> }
>
>
> Compilation (also when adding "--std=c++11") prints the error:
> round.cpp: In function 'int main()':
> round.cpp:4:16: error: 'fegetround' is not a member of 'std'; did you mean
> 'fegetround'?
> 4 | return std::fegetround ();
> | ^~~~~~~~~~
> In file included from /home/andreas/.guix-profile/include/c++/fenv.h:36,
> from /home/andreas/.guix-profile/include/c++/cfenv:41,
> from round.cpp:1:
> /home/andreas/.guix-profile/include/fenv.h:104:12: note: 'fegetround'
> declared here
> 104 | extern int fegetround (void) __THROW __attribute_pure__;
> | ^~~~~~~~~~
Is this perhaps related to https://issues.guix.gnu.org/42392 ?
--
Ricardo