The documentation states that this should be an error: auto s1 = q{ @ }; However, the compiler allows it. Tested on Windows with 2.040 and 2.050.
The documentation is not maintained. If it were, it would say that @ is a valid token in d2.
Ugh. I have even used the @ token (which I must have found in TDPL). That makes me feel dumb. Well, if it's not a compiler error, then it's a documentation error (in multiple places). :-)
(In reply to comment #2) > Ugh. I have even used the @ token (which I must have found in TDPL). That > makes me feel dumb. Sorry bout that :) FWIW, this problem and a bunch of others are fixed by the patch in bug 1351.
@ is a valid token, and the documentation was recently fixed to reflect that.