This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: const void* and goto *expr
- From: "Igor Bukanov" <igor at mir2 dot org>
- To: eus at member dot fsf dot org
- Cc: "GCC Help Mailing List" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 27 Jun 2008 10:44:59 +0200
- Subject: Re: const void* and goto *expr
- References: <259906.41785.qm@web37603.mail.mud.yahoo.com>
2008/6/27 Eus <eus@member.fsf.org>:
> Yes, it is intended. But, neither the doc nor GCC has a bug.
> Why? Because the goto operator can be considered as the following function:
> void goto(const void *ptr);
Right. This in retrospect is obvious.
> I guess Intel folks walked the wrong path of not knowing that `const void *' is the superset of `void *'.
Well, the doc can be read as impling goto(void *ptr). In any case, I
will file a bug for ICC.
Regards, Igor