This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23147] Missing declaration of static const members
- From: "fw at deneb dot enyo dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2005 21:43:02 -0000
- Subject: [Bug c++/23147] Missing declaration of static const members
- References: <20050730085712.23147.fw@deneb.enyo.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fw at deneb dot enyo dot de 2005-08-05 21:43 -------
(In reply to comment #5)
> (In reply to comment #4)
>
> > What about permitting this as a GNU extension? It seems quite useful for
> > template code.
>
> With "this" you mean omitting the definition? Well, it saves one line of
> typing, but I'm not really convinced that justifies an extension.
I (incorrectly) feared that GCC would emit the constant for each template
instantiation. Therefore, I agree with you that no extension is necessary, and
the bug report was completely invalid. Sorry about that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23147