[Issue 3044] Segfault(template.c) instantiating struct tuple constructor with zero arguments.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 2 17:12:41 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3044
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
CC| |clugdbug at yahoo.com.au
Platform|Other |x86
Summary|Bus error compiling the |Segfault(template.c)
|following code |instantiating struct tuple
| |constructor with zero
| |arguments.
OS/Version|Mac OS X |All
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-06-02 17:12:40 PDT ---
Applies on all platforms. Segfaulting in template.c 854
Reduced test case shows it's caused by a tuple this() struct constructor.
struct Foo {
this(U...)(U values) { }
}
void main(){
new Foo;
}
Segfaulting in template.c (854)
nfargs = fargs->dim; // number of function arguments
PATCH: template.c(854)
if (!fargs) nfargs=0;
else nfargs = fargs->dim; // number of function arguments
--
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