[Bug c++/10931] New: Incorrect "non-lvalue in unary `&'" error
timb@bluearc.com
gcc-bugzilla@gcc.gnu.org
Thu May 22 13:03:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10931
Summary: Incorrect "non-lvalue in unary `&'" error
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: timb@bluearc.com
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i386-linux
GCC host triplet: i386-linux
GCC target triplet: i386-linux
This code:
void foo(int x)
{
static_cast<const unsigned int&>(x);
}
gets:
test.cpp:3: error: non-lvalue in unary `&'
AFAICT there is nothing wrong with it, and it compiles fine before 3.3. (And
what unary `&'?)
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list