From: Alexandre Oliva <aoliva@redhat.com>
To: Gianni Mariani <gianni_@uluru.mariani.ws>
Cc: gianni@mariani.ws (Gianni Mariani), gcc@gcc.gnu.org (gcc@gcc.gnu.org)
Subject: Re: const static initializers versionitis
Date: Tue, 22 Aug 2000 08:29:00 -0000 [thread overview]
Message-ID: <orsnrxuxfw.fsf@guarana.lsd.ic.unicamp.br> (raw)
In-Reply-To: <200008221512.IAA02303@uluru.mariani.ws>
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
next prev parent reply other threads:[~2000-08-22 8:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-18 8:43 Gianni Mariani
2000-08-22 8:12 ` Gianni Mariani
2000-08-22 8:29 ` Alexandre Oliva [this message]
2000-08-22 9:04 ` Gianni Mariani
2000-08-22 9:27 ` Alexandre Oliva
2000-08-22 10:59 ` Gianni Mariani
2000-08-23 2:59 ` Alexandre Oliva
2000-08-23 8:33 ` Gianni Mariani
2000-08-23 9:39 ` Alexandre Oliva
2000-08-23 10:12 ` Gianni Mariani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=orsnrxuxfw.fsf@guarana.lsd.ic.unicamp.br \
--to=aoliva@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=gianni@mariani.ws \
--cc=gianni_@uluru.mariani.ws \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).