This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++11] PR54413 Option for turning off compiler extensions for numeric literals.
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Paolo Carlini <paolo dot carlini at oracle dot com>, Jason Merrill <jason at redhat dot com>
- Date: Sun, 04 Nov 2012 23:49:40 -0500
- Subject: [C++11] PR54413 Option for turning off compiler extensions for numeric literals.
There is a request to be able to turn off interpretation of several
suffixes for gcc extension numeric literals to make way for C++-1Y or
various std libraries to claim several suffixes currently used for gnu
extensions.
This patch interprets the suffixes according to the current extension
rules by default. But if -std=c++1y is used as the C++ standard then
the flags are off by default allowing use as C+11 user-defined literals.
I would like to get this into 4.8 if I can.
It passes on x86_64 linux.
Regards,
Ed
Attachment:
CL_no_nonstd_literals
Description: Text document
Attachment:
patch_no_nonstd_literals5
Description: Text document