Jump to page: 1 2
Thread overview
[Issue 2229] New: Compiler crashes on invalid code
Jul 16, 2008
d-bugmail
[Issue 2229] Compiler crashes on trying to instantiate a variadic template with values instead of types
Jul 16, 2008
d-bugmail
[Issue 2229] Compiler crashes on trying to instantiate a variadic template
Jul 16, 2008
d-bugmail
Jul 16, 2008
d-bugmail
[Issue 2229] Compiler crashes on trying to instantiate an invalid variadic template with more than one argument
Jul 17, 2008
d-bugmail
Jan 09, 2009
d-bugmail
Jan 14, 2009
d-bugmail
Apr 03, 2009
d-bugmail
[Issue 2229] ICE instantiating an invalid variadic template with more than one argument
Apr 03, 2009
d-bugmail
Apr 03, 2009
d-bugmail
[Issue 2229] ICE(template.c) instantiating an invalid variadic template with more than one argument
Sep 12, 2009
Don
Oct 13, 2009
Walter Bright
Nov 07, 2009
Don
Nov 08, 2009
Don
Dec 06, 2009
Walter Bright
July 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2229

           Summary: Compiler crashes on invalid code
           Product: D
           Version: 2.017
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: samukha@voliacable.com


T foo(A...)()
{
    return "";
}

void main()
{
    foo!(1, 2)(); // crashes when there is more than one parameter
}


-- 

July 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2229


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |ice-on-invalid-code
            Summary|Compiler crashes on invalid |Compiler crashes on trying
                   |code                        |to instantiate a variadic
                   |                            |template with values instead
                   |                            |of types




------- Comment #1 from smjg@iname.com  2008-07-16 05:25 -------
Please remember to assign keywords to bug reports.  To everybody reading this: Please look through issues you've reported and check for missing keywords.

Also, please avoid vague summary lines that could equally apply to many unrelated bugs.  As a guide, if there exists a keyword that says what your summary says, then the summary is too vague.


-- 

July 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2229


samukha@voliacable.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Compiler crashes on trying  |Compiler crashes on trying
                   |to instantiate a variadic   |to instantiate a variadic
                   |template with values instead|template
                   |of types                    |




------- Comment #2 from samukha@voliacable.com  2008-07-16 06:30 -------
Ok. Could the bugzilla ugliness be modified so that there is a combo from which to select keywords? I keep forgetting their spelling.

I have changed the summary because the compiler crashes when the template is parametrized with any tuple containing more than one element.


-- 

July 16, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2229





------- Comment #3 from samukha@voliacable.com  2008-07-16 06:32 -------
*** Bug 2230 has been marked as a duplicate of this bug. ***


-- 

July 17, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2229





------- Comment #4 from smjg@iname.com  2008-07-17 11:58 -------
(In reply to comment #2)
> Ok. Could the bugzilla ugliness be modified so that there is a combo from which to select keywords? I keep forgetting their spelling.

Really, a <select multiple> is what we want.  I don't know whether there's an option in Bugzilla to do this, but it could probably be done by hacking the local installation.  That said, the version of Bugzilla we're using here is far from current, so FAIK the best COA might be to upgrade.


-- 

January 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2229





------- Comment #5 from dsimcha@yahoo.com  2009-01-09 14:20 -------
*** Bug 2435 has been marked as a duplicate of this bug. ***


-- 

January 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2229


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.017                       |1.036




------- Comment #6 from clugdbug@yahoo.com.au  2009-01-14 00:50 -------
Again, I note that this applies to D1.x as well
Test case from the closed bug 2345.
---
Foo foo(A...)()
{
}

static assert(foo!(1, 2)());


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2229


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |site.puremagic.com@brianguer
                   |                            |tin.com




------- Comment #7 from clugdbug@yahoo.com.au  2009-04-03 07:11 -------
*** Bug 2566 has been marked as a duplicate of this bug. ***


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2229


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Compiler crashes on trying  |ICE instantiating an invalid
                   |to instantiate an invalid   |variadic template with more
                   |variadic template with more |than one argument
                   |than one argument           |




------- Comment #8 from clugdbug@yahoo.com.au  2009-04-03 07:15 -------
No longer segfaults.
---------
DMD 1.042:
Assertion failure: 'i < parameters->dim' on line 806 in file 'template.c'

abnormal program termination
-------
DMD2.027:
bug.d(1): Error: template fog.foo(A...) declaration A is already defined

which seems incorrect.


-- 

April 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2229


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au




------- Comment #9 from clugdbug@yahoo.com.au  2009-04-03 08:13 -------
*** Bug 2555 has been marked as a duplicate of this bug. ***


-- 

« First   ‹ Prev
1 2