[Issue 713] New: circular const definitions with module operator "." cause the compiler to segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 22 05:22:26 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=713

           Summary: circular const definitions with module operator "."
                    cause the compiler to segfault
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


(Originally posted by Wang Zhen <nehzgnaw at gmail.com> on 2006-02-17
as news:dt4ahd$2ikp$2 at digitaldaemon.com)

segfaults:
#
# const int a = .b;
# const int b = a;
#

#
# const int a = b;
# const int b = .a;
#

doesn't segfault:
#
# const int a = .b;
# const int b = .a;
#

#
# const int a = b;
# const int b = a;
#

test cases:
http://dstress.kuehne.cn/nocompile/c/const_32_A.d
http://dstress.kuehne.cn/nocompile/c/const_32_B.d
http://dstress.kuehne.cn/nocompile/c/const_32_C.d
http://dstress.kuehne.cn/nocompile/c/const_32_D.d


-- 



More information about the Digitalmars-d-bugs mailing list