This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/921
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/921
- From: nathan at gcc dot gnu dot org
- Date: 5 Jan 2001 16:26:05 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: nathan at gcc dot gnu dot org
The following reply was made to PR c++/921; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: ejm@onmedia.com, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/921
Date: 5 Jan 2001 16:24:00 -0000
Synopsis: 2.95.2 generates incorrect ref to static initialized char[] in classes. 2.8.1 works fine
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Jan 5 08:23:59 2001
State-Changed-Why:
Not a bug, you have no definition ox X::xyz in the complete
program -- only it's declaration inside X. see 9.4.2/2
of the standard. You need to say somewhere outside of X
char const* X::xyz;
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=921&database=gcc