[Bug libstdc++/53578] include/ext/concurrence.h relies on ill-formed narrowing conversions
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 5 00:00:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53578
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-05 00:00:18 UTC ---
(In reply to comment #1)
> > I assume g++ will hit this too once it adds support for the narrowing check in
> > converted constant expressions.
>
> IIRC g++ had the check for narrowing in converted constant expressions and it
> was removed because the standard had a defect.
Actually I take that back. GCC already implements the error for narrowing for
converted constant expressions.
Also ext/concurrence.h is an extension to the C++ standard so I don't think we
should worry about other compilers besides GCC here.
More information about the Gcc-bugs
mailing list