On 12/07/2016 11:08 AM, Jakub Jelinek wrote:
On Wed, Dec 07, 2016 at 11:04:37AM +0100, Stephan Bergmann wrote:
On 12/06/2016 04:16 PM, Jakub Jelinek wrote:
On Tue, Dec 06, 2016 at 02:51:14PM -0000, Jeremy Newton wrote:
Anyone have any idea what causes these errors? Trying to update a package and it failed during a local test build in mock (f25):
In file included from /usr/include/c++/6.2.1/stdlib.h:36:0,
from expr.ypp:5:
/usr/include/c++/6.2.1/cstdlib:124:11: error: '::div_t' has not been declared
See https://gcc.gnu.org/gcc-6/porting_to.html
Header <stdlib.h> changes
part. Most likely the package is doing something wrong.
I ran into an error like that the other day when some #include (that
indirectly then #include'd <cstdlib>) was wrapped in a namespace { ... }.
Don't do that, that is invalid in C++.
Of course. It's just that that caused exactly the same symptoms, so I'm
assuming the OP ran into the same problem. (And I guess that some such
broken code happened to go unnoticed with older versions of GCC/libstdc++.)
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx