This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34811] Classes without attributes declared as const need initializer.
- 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: 16 Jan 2008 15:05:51 -0000
- Subject: [Bug c++/34811] Classes without attributes declared as const need initializer.
- References: <bug-34811-15648@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 2008-01-16 15:05 -------
(In reply to comment #2)
> I know about that. The class don't need a contructor, it does not have anything
> that needs to be assigned upon creation. Why should the compiler link in code
> that does not do anything?
Because it is a const. Visual Studio is no where near standards complaint and
you have to be explict at enabling its standards complaint mode too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34811