This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ bug report
- To: gcc-bugs at gcc dot gnu dot org
- Subject: g++ bug report
- From: "R.S. Veldema" <rveldema at neptune dot cs dot vu dot nl>
- Date: Wed, 31 May 2000 17:54:14 +0200
- Organization: Vrije Universiteit
struct LasmRegister{};
struct TRegisterDefinition
{
LasmRegister *reg;
};
// remove the "const" to make it work.
const TRegisterDefinition register_definition_d3 = {
(new LasmRegister())
};
// Used GCC:
// Reading specs from /usr/lib/gcc-lib/ia64-cygnus-linux/2.9-ia64-000216-final/specs
// gcc version 2.9-ia64-000216-final
// [rveldema@tl1 tests]$ g++ Bug1.cc
// Bug1.cc: In function `void __static_initialization_and_destruction_0 (int, int)':
// Bug1.cc:12: non-lvalue in unary `&'
// linux on a IA-64
//