Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 08, 2013 alloca cause DMD compiler error (Internal error: eh.c 54) | ||||
---|---|---|---|---|
| ||||
I'm getting a strange compiler error when using alloca in my code. What's doubly strange is that I have 2 functions in the same file needing to call alloca for the same purpose. It seems to work fine in one of the functions, but uncommenting alloca in the other causes this cryptic error message to appear: Internal error: eh.c 54 I believe it might be because the problematic function also creates structs on the stack. The following minimal example replicates the compiler error: struct TheStruct { ~this() { } } void bar() { } void foo(IRInstr instr) { auto s = TheStruct(); bar(); auto a = alloca(16); } |
July 08, 2013 Re: alloca cause DMD compiler error (Internal error: eh.c 54) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxime Chevalier-Boisvert | On 7/8/2013 10:37 AM, Maxime Chevalier-Boisvert wrote: > I'm getting a strange compiler error when using alloca in my code. Please post all bug reports go here: http://d.puremagic.com/issues/ |
July 08, 2013 Re: alloca cause DMD compiler error (Internal error: eh.c 54) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxime Chevalier-Boisvert | On Monday, 8 July 2013 at 17:37:10 UTC, Maxime Chevalier-Boisvert wrote: > void foo(IRInstr instr) > { > auto s = TheStruct(); > > bar(); > > auto a = alloca(16); > } Looks like this bug: http://d.puremagic.com/issues/show_bug.cgi?id=3753 |
July 08, 2013 Re: alloca cause DMD compiler error (Internal error: eh.c 54) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Monday, 8 July 2013 at 18:13:33 UTC, Walter Bright wrote: > On 7/8/2013 10:37 AM, Maxime Chevalier-Boisvert wrote: >> I'm getting a strange compiler error when using alloca in my code. > > Please post all bug reports go here: > > http://d.puremagic.com/issues/ Submitted a new issue: http://d.puremagic.com/issues/show_bug.cgi?id=10575 |
July 08, 2013 Re: alloca cause DMD compiler error (Internal error: eh.c 54) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxime Chevalier-Boisvert | On 7/8/2013 11:57 AM, Maxime Chevalier-Boisvert wrote:
> Submitted a new issue: http://d.puremagic.com/issues/show_bug.cgi?id=10575
Thank you!
|
Copyright © 1999-2021 by the D Language Foundation