Thread overview
[Issue 998] New: Crash in compile-time functions with pragma(msg,...)
Feb 23, 2007
d-bugmail
Feb 26, 2007
d-bugmail
Mar 20, 2007
d-bugmail
Mar 20, 2007
d-bugmail
Apr 20, 2007
d-bugmail
February 23, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998

           Summary: Crash in compile-time functions with pragma(msg,...)
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: tknott@gmail.com


The following code causes DMD 1.007 to crash hard without an error message. Commenting out the pragma in test() makes it work.

void main()
{
        static auto x = test();
}

int test()
{
        pragma(msg, "Crash!");
        return 2;
}


-- 

February 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #1 from thomas-dloop@kuehne.cn  2007-02-26 05:37 -------
Added to DStress as http://dstress.kuehne.cn/run/p/pragma_msg_01_A.d http://dstress.kuehne.cn/run/p/pragma_msg_01_B.d http://dstress.kuehne.cn/run/p/pragma_msg_01_C.d


-- 

March 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998


tknott@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au




------- Comment #2 from tknott@gmail.com  2007-03-20 16:04 -------
*** Bug 1056 has been marked as a duplicate of this bug. ***


-- 

March 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998


tknott@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davidl@126.com




------- Comment #3 from tknott@gmail.com  2007-03-20 16:09 -------
*** Bug 1070 has been marked as a duplicate of this bug. ***


-- 

April 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #4 from bugzilla@digitalmars.com  2007-04-20 14:33 -------
Works in DMD 1.013


--