This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/23147] Missing declaration of static const members


------- 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


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