This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++11] PR54413 Option for turning off compiler extensions for numeric literals.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: 3dw4rd at verizon dot net, gcc-patches at gcc dot gnu dot org, paolo dot carlini at oracle dot com
- Date: Wed, 7 Nov 2012 16:29:31 +0100
- Subject: Re: [C++11] PR54413 Option for turning off compiler extensions for numeric literals.
- References: <23016209.1714040.1352240443694.JavaMail.root@vznit170080> <509A7CD1.5000800@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Nov 07, 2012 at 10:22:57AM -0500, Jason Merrill wrote:
> >I thought about that. We'd need some machinery that would allow cpp to query what has been declared already.
>
> Or alternately, always treat them as user-defined in C++ mode and
> have the front end decide to use the built-in interpretation if no
> literal operator is declared.
Yeah, I think that would be best.
Jakub