mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fixed const/invariant struc/class fields of the form const int i = 4; they don't add a field.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user