This is the mail archive of the
mailing list for the GCC project.
Re: Re: [wwwdocs] C++14 support for binary literals says Noinstead of Yes
- From: 3dw4rd at verizon dot net
- To: jakub at redhat dot com, jason at redhat dot com
- Cc: 3dw4rd at verizon dot net, gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Apr 2013 10:48:25 -0500 (CDT)
- Subject: Re: Re: [wwwdocs] C++14 support for binary literals says Noinstead of Yes
On 04/30/13, Jakub Jelinek<email@example.com> wrote:
On Tue, Apr 30, 2013 at 11:23:49AM -0400, Jason Merrill wrote:
> I've updated the webpage.
Perhaps it would be nice if we had some testsuite coverage for it too,
right now unless I'm blind there are exactly 2 testcases, using one 0b...
number in each in g++.dg/.
At least port gcc.dg/binary-constants-*.c to C++ (or move to c-c++-common/)
and perhaps have something where the numbers are used in some C++ only
contexts (templates, constexprs, whatever).
I've been meaning to throw together a user-defined literal test for octal and hex. I'll add binary literals too.
I've used literals on octal and hex numbers and I know they work but it would be nice to have in the testsuite.
Usage of literal operators on octal, hex, and now binary literals are explicitly called out in the standard (somewhere).