// Copyright (C) 2002 Free Software Foundation // Contributed by Matt Austern // { dg-do compile } void f() { int n; char* p = &(char) n; // { dg-error "lvalue" } }