Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler crashes when taking address of function pointer


Example:

const g = {; ->}
const f = {; var addr = &g}

I get this:

ryan@DevPC-LX:~/langtest/myr$ 6m bug.myr
6m: gengas.c:128: locprint: Assertion `(spec == 'r' && isintmode(l->mode))
|| (spec == 'f' && isfloatmode(l->mode)) || spec == 'v' || spec == 'x' ||
spec == 'u'' failed.
Aborted (core dumped)
ryan@DevPC-LX:~/langtest/myr$

-- 
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
"It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. -
srean
Check out my website: http://kirbyfan64.github.io/

Follow-Ups:
Re: Compiler crashes when taking address of function pointerOri Bernstein <ori@xxxxxxxxxxxxxx>