[LLVMbugs] [Bug 24208] Parse error with ref-qualifier combined with equal sign

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 21 18:58:49 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24208

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
&= is a single token.

> There is no ambiguity with any other syntactical feature of the language.

Ha! Try these:

template<typename> struct X {};
void f(X<int>={}); // error, >= is a single token

bool b = sizeof new int*==sizeof new void*; // error, forms '*=' '=', not '*'
'=='

struct Y {}; Y operator%(Y, Y); Y operator+(Y, Y);
Y (*fp)(Y, Y) = true?operator%:operator+; // error, '%:' is alternative token
for '#'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150722/50f9d7a7/attachment.html>


More information about the llvm-bugs mailing list