[LLVMbugs] [Bug 24208] New: Parse error with ref-qualifier combined with equal sign
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 21 18:44:28 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: david.godfrey99 at gmail.com
CC: llvmbugs at cs.uiuc.edu, mclow.lists at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150722/6d5fb013/attachment.html>
More information about the llvm-bugs
mailing list