This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70822] New: bogus "error: lvalue required as unary â&â operand" with C++14 parenthesized SCOPE_REF
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Apr 2016 14:27:38 +0000
- Subject: [Bug c++/70822] New: bogus "error: lvalue required as unary â&â operand" with C++14 parenthesized SCOPE_REF
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70822
Bug ID: 70822
Summary: bogus "error: lvalue required as unary â&â operand"
with C++14 parenthesized SCOPE_REF
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppalka at gcc dot gnu.org
Target Milestone: ---
$ cat scope.cc
struct a
{
static int b;
};
template <typename>
void
foo ()
{
&(a::b);
}
$ g++ -std=c++14 scope.cc
scope.cc: In function âvoid foo()â:
scope.cc:10:9: error: lvalue required as unary â&â operand
&(a::b);