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

            Bug ID: 24208
           Summary: Parse error with ref-qualifier combined with equal
                    sign
           Product: libc++
           Version: 3.7
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: david.godfre...@gmail.com
                CC: llvmbugs@cs.uiuc.edu, mclow.li...@gmail.com
    Classification: Unclassified

This fails on both latest versions of GCC and Clang:

struct bar {
    void foo() &= delete; // expected ';' at end of member declaration
};

I don't see why putting both tokens together should cause an issue. There is no
ambiguity with any other syntactical feature of the language.

If we replace either token with a macro then the code compiles.

#define eq =
struct bar {
    void foo() &eq delete;
};

So is there a reason this isn't allowed explicitly?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to