This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13259] link fails, if static const is passed to a template function
- From: "lev at cs dot technion dot ac dot il" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2003 15:49:23 -0000
- Subject: [Bug c++/13259] link fails, if static const is passed to a template function
- References: <20031201151523.13259.lev@cs.technion.ac.il>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lev at cs dot technion dot ac dot il 2003-12-01 15:49 -------
(In reply to comment #2)
> The code is not valid as you still need to have declaration of T::N.
ANSI C++ allows inline initialization of const static members without their
declaration (at least this was the state in Draft of 1996).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13259