[Issue 6785] New: Wrong error message from pragma(msg) of failed instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 7 15:41:46 PDT 2011


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

           Summary: Wrong error message from pragma(msg) of failed
                    instantiation
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-10-07 15:41:00 PDT ---
This is wrong D2 code (there is no foo):


void main() {
    enum int x = 1;
    pragma(msg, foo!x);
}


DMD 2.056head gives a partially wrong error message, that contains a "__error":

test.d(3): Error: template instance foo!(x) template 'foo' is not defined
__error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list