This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21499] declaration/initialization of non-integral member constants: compiler does not emit error
- 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: 10 May 2005 17:44:45 -0000
- Subject: [Bug c++/21499] declaration/initialization of non-integral member constants: compiler does not emit error
- References: <20050510174115.21499.papadopo@shfj.cea.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:44 -------
> It's a good idea to flag this error to avoid errors that are more difficult to
> catch at link-time. Apparently GCC does not require integral member constants to
> be defined, but it does require other member constants to be defined somewhere.
> Why not help enforce this at compile-time?
Because the standard does not require to diagnostic the problem.
Also the orignal problem is a dup of bug 11393.
*** This bug has been marked as a duplicate of 11393 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21499