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++/34811] Classes without attributes declared as const need initializer.



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


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