ought to be a bug? gcc4 STL (stl_algo.h _S_threashold, enum vs. static const int)
Christian Parpart
trapni@gentoo.org
Sun Apr 10 06:44:00 GMT 2005
I ran into an error like this one:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.0-beta20050402/include/g++-v4/bits/stl_algo.h:2236:
error: 'std::<anonymous enum>' is/uses anonymous type
and got fixed it by touching upstream headers of gcc4's STL:
battousai bits $ diff -u stl_algo.h{.orig,}
--- stl_algo.h.orig 2005-04-10 08:40:02.000000000 +0200
+++ stl_algo.h 2005-04-10 08:40:17.000000000 +0200
@@ -2071,7 +2071,7 @@
* This controls some aspect of the sort routines.
* @endif
*/
- enum { _S_threshold = 16 };
+ static const int _S_threshold = 16;
/**
* @if maint
is this considered a bug in upstream? if so. shall I report it on bugzilla or
is some dev round being so kind in fixing it on-the-fly?
Regards,
Christian Parpart.
--
Netiquette: http://www.ietf.org/rfc/rfc1855.txt
08:40:48 up 17 days, 21:47, 0 users, load average: 0.05, 0.09, 0.08
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050410/72f6fd03/attachment.sig>
More information about the Gcc-help
mailing list