This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7214: const declaration syntax and multiple definitions
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yuri dot delia at ubiest dot com
- Date: 5 Jul 2002 10:09:53 -0000
- Subject: Re: c++/7214: const declaration syntax and multiple definitions
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, yuri dot delia at ubiest dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: const declaration syntax and multiple definitions
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Jul 5 03:09:52 2002
State-Changed-Why:
not a bug.
char const *foo ("vcalue");
is not defining a const array, but a non-const pointer
to char. As you have multiple definitions of a non-const
object, it is an error.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7214