This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: const static initializers versionitis


On Aug 22, 2000, Gianni Mariani <gianni_@uluru.mariani.ws> wrote:

> Why were forward declarations of const arrays removed from g++
> since 2.95.2 ?

`extern' is the keyword to forward-declare data in namespace scope.

> Isn't this a gcc bug?

Nope.

> The code still compiles fine in gcc so I would have some level
> of expectation that "const"ness should not change the behaviour
> of the compiler.

const POD must be initialized.

> Is there a compiler switch that reinstates the desired behaviour ?

-fpermissive, maybe?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]