Compiler crashes when taking address of function pointer
[Thread Prev] | [Thread Next]
- Subject: Compiler crashes when taking address of function pointer
- From: Ryan Gonzalez <rymg19@xxxxxxxxx>
- Date: Fri, 16 Jan 2015 14:52:29 -0600
- To: myrddin-dev@xxxxxxxxxxxxxx
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/
Re: Compiler crashes when taking address of function pointer | Ori Bernstein <ori@xxxxxxxxxxxxxx> |
- Prev by Date: Re: [PATCH] Respect outfile
- Next by Date: Re: Compiler crashes when taking address of function pointer
- Previous by thread: Re: [PATCH] Respect outfile
- Next by thread: Re: Compiler crashes when taking address of function pointer
- Index(es):