[Development] QStringLiteral is broken(ish) on MSVC (compiler bug?)

Thiago Macieira thiago.macieira at intel.com
Fri Mar 15 21:09:51 CET 2019


On Friday, 15 March 2019 11:12:30 PDT Thiago Macieira wrote:
> On Friday, 15 March 2019 11:09:20 PDT Matthew Woehlke wrote:
> > (Note: Another solution is to redefine QT_UNICODE_LITERAL_II to `u ##
> > str`, but that's SIC.)
> 
> And doesn't help, because you *can* write
> 
> 	QStringLiteral("a" "b" "c")

Extra note: you couldn't write this prior to MSVC 2013 getting dropped from 
the Qt support matrix, as that compiler failed to properly concatenate strings 
as per Lexer Phase 6 requires.

It was a different problem with supporting the same part of the spec as the 
problem you've found.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Development mailing list