Thread overview
[Bug 143] ICE, segfaults, apparently the compiler doesn't like the "%s" string when reporting error
Jul 21, 2014
Iain Buclaw
Jul 21, 2014
Iain Buclaw
Jul 21, 2014
Iain Buclaw
July 21, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=143

art.08.09@gmail.com changed:

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

--- Comment #2 from art.08.09@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.


July 21, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=143

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Ah right, I didn't bother reading the *actual* message contents.

-- 
You are receiving this mail because:
You are watching all bug changes.


July 21, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=143

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
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)

-- 
You are receiving this mail because:
You are watching all bug changes.


July 21, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=143

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> ---
https://github.com/D-Programming-GDC/GDC/commit/553a30c13d53e129159213cec329dcaff678ffbd

-- 
You are receiving this mail because:
You are watching all bug changes.