Thread overview
[Issue 1070] New: can't use pragma to debug CTFE. DMD AV
Mar 20, 2007
d-bugmail
Mar 20, 2007
d-bugmail
Mar 20, 2007
d-bugmail
Mar 20, 2007
d-bugmail
Mar 21, 2007
d-bugmail
March 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1070

           Summary: can't use pragma to debug CTFE. DMD AV
           Product: D
           Version: 1.009
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: davidl@126.com


static char[] bug(char[] string)
{
        pragma(msg,string);
        return "";
}
void main()
{
        mixin(bug("asdfa"));
}

u can't use pragma to debug the CTFE.
though it's a feature request, yet dmd AV here.


-- 

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


deewiant@gmail.com changed:

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




------- Comment #1 from deewiant@gmail.com  2007-03-20 04:49 -------


*** This bug has been marked as a duplicate of 1056 ***


-- 

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


davidl@126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |




------- Comment #2 from davidl@126.com  2007-03-20 07:46 -------
i don't agree it's a duplicate bug.
At least it's a minor enhancement.
cause it try to pragma the compile-time determinable string


-- 

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


tknott@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #3 from tknott@gmail.com  2007-03-20 16:09 -------
I also think this is a duplicate.  At the very least, if you want to reopen this bug again as an enhancement make sure to also change the severity to reflect that, and I would imagine that this would start working for "compile-time determinable strings" once bug 998 is fixed so also make it dependent on bug 998.

*** This bug has been marked as a duplicate of 998 ***


-- 

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





------- Comment #4 from davidl@126.com  2007-03-20 21:14 -------
OK, leave it alone till new version of DMD released
i think it's another test case of the other bugs u guys
think it's a duplicate of.
coz it's inside a compile-time func , and pragma the
compile time func's vars and args


--