This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C++14] Admit C++ keywords as literal suffixes.
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Ed Smith-Rowland <3dw4rd at verizon dot net>, gcc <gcc at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Date: Tue, 18 Jun 2013 11:48:38 +0100
- Subject: Re: [C++14] Admit C++ keywords as literal suffixes.
- References: <51BFF85C dot 8080705 at verizon dot net> <mvm61xbq3bi dot fsf at hawking dot suse dot de>
On 18 June 2013 08:35, Andreas Schwab wrote:
> According to 2.14.8#10 this is ill-formed.
It's ill-formed for users to define it, but not ill-formed according
to the language grammar, and the compiler would need to implement that
grammar if operator""if gets added to the standard library (which
could happen if an NB insists on the complex literals being in C++14,
which can be done without the horrifically ugly i_f suffix now thanks
to DR 1473.)