This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70767] std::numeric_limits<const unsigned char>::digits is wrong unless --std=c++11 used
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Apr 2016 09:44:20 +0000
- Subject: [Bug libstdc++/70767] std::numeric_limits<const unsigned char>::digits is wrong unless --std=c++11 used
- Auto-submitted: auto-generated
- References: <bug-70767-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70767
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-04-25
Component|c++ |libstdc++
Target Milestone|--- |7.0
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #1)
> http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559
> It has status CD1, I don't remember if that means it applies retroactively
> or not.
LWG is less consistent than CWG about stating which issue resolutions are
considered DRs, and so apply retroactively. The libstdc++ policy is to treat
most of them as applying retroactively anyway, because that's the most useful
approach.
Although our current behaviour is correct according to C++98, I see no reason
not to define the specializations for cv-qualified types in C++98.