This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29803] Program links only at -O2 or above
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2006 20:29:07 -0000
- Subject: [Bug c++/29803] Program links only at -O2 or above
- References: <bug-29803-1710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-11 20:29 -------
(In reply to comment #2)
> This is not a duplicate of 23147: it raises a couple of issues that have
> nothing to do with that bug report.
No, it is exactly the same issue. The C++ standard says you need to include a
defintion for the static const even if the static const integer are initialized
inside the class.
This code is not conforming code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29803