[Bug 143] ICE, segfaults, apparently the compiler doesn't like the "%s" string when reporting error

via D.gnu d.gnu at puremagic.com
Mon Jul 21 03:50:09 PDT 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=143

art.08.09 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |art.08.09 at gmail.com

--- Comment #2 from art.08.09 at gmail.com ---
(In reply to Iain Buclaw from comment #1)
> Can not reproduce on current master.  I get:
> 
> bug143.d:3: error: template instance f!(function ()
> {
> g("f(A)");
> }
> ) does not match template declaration (null)

I only ran into this while reducing another testcase, so I don't have a better
example. Note that it crashes _only_ when that string literal contains "%s" (or
'%' followed by other chars), it seems that it tries to interpret it as a
format string.
If the output you got was from the original unmodified testcase then the error
message is bogus - there's no "f(A)" string there. (That 'null' would also be
an issue; IIRC I've seen that here too, while trying to figure out what was
triggering the crash)

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140721/6e9f4e33/attachment-0001.html>


More information about the D.gnu mailing list