Bug 14448 – Compiler crashes when getting the address of a function in MemberFunctionTuple

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-04-14T12:05:00Z
Last change time
2015-04-14T13:26:28Z
Assigned to
nobody
Creator
ziofu1

Comments

Comment #0 by ziofu1 — 2015-04-14T12:05:20Z
module test; class Foo { void foo() { import std.traits; alias funs = MemberFunctionsTuple!( typeof( this ), "bar" ); void function( string ) b = &funs[ 0 ]; b( "world" ); } void bar( string s ) { import std.stdio; writeln( "hello ", s ); } } void main() { auto f = new Foo(); f.foo(); } On Ubuntu (but it has been tested on windows too ) dmd test.d causes segmentation fault
Comment #1 by k.hara.pg — 2015-04-14T13:26:28Z
*** This issue has been marked as a duplicate of issue 13920 ***