Fixed const/invariant struc/class fields of the form const int i = 4; they don't add a field.

This commit is contained in:
Tomas Lindquist Olsen
2009-02-26 15:24:20 +01:00
parent 1a155e6439
commit 58a8711bc1

View File

@@ -867,7 +867,12 @@ void VarDeclaration::toObjFile(int multiobj)
}
// global variable or magic
#if DMDV2
// taken from dmd2/structs
if (isDataseg() || (storage_class & (STCconst | STCinvariant) && init))
#else
if (isDataseg())
#endif
{
Logger::println("data segment");