[Issue 6785] Wrong error message from pragma(msg) of failed instantiation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 8 13:29:44 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6785
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-10-08 13:28:54 PDT ---
The "__error" isn't part of the error message. It's coming from the
pragma(msg): it's printing foo!x, and that's an error, so it prints "__error".
The real bug is that the pragma msg is still displayed, even when an error
occurs while evaluating it. Maybe it should give an error of the form:
test.d(3): Error: template instance foo!(x) template 'foo' is not defined
test.d(3): Error: parameter for pragma(msg) must be a string
--
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