[Bug libstdc++/50268] [C++0x] bitset doesn't sanitize input
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 1 22:17:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50268
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-01 22:17:00 UTC ---
Created attachment 25173
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25173
Draft patch
Hi Marc. This is a patch I'm working on. Can you see anything obviously wrong
with it? And / or simple improvements? (we want the fix for 4.6 too, I think)
The issue of course is that for a constexpr constructor we can't do anything in
the body (at the time "somebody" decided to disregard the issue completely ;)
but luckily we can on the unsigned long long itself with a constexpr helper.
Overall I think we are not doing more work here compared to C++03.
More information about the Gcc-bugs
mailing list