public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* casting variadic function pointer to non-variadic function pointer
@ 2014-04-07  8:38 Pavel Andrejs
  2014-04-07  8:57 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Andrejs @ 2014-04-07  8:38 UTC (permalink / raw)
  To: gcc-help

Hi,

I have a question regarding bug 45106
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45106). I know it was
closed as invalid, but I have a product, which relies on such
typecasts. I noticed that when I compile it with g++ version 4.4, it
crashes, but when I use g++ version 4.7 everything seems to work. My
question is if there were some changes regarding these typecasts and I
can rely on this in g++ 4.7 or whether this is just coincidence and I
need to rewrite the code.

Thank you

Pavel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: casting variadic function pointer to non-variadic function pointer
  2014-04-07  8:38 casting variadic function pointer to non-variadic function pointer Pavel Andrejs
@ 2014-04-07  8:57 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2014-04-07  8:57 UTC (permalink / raw)
  To: Pavel Andrejs; +Cc: gcc-help

On 7 April 2014 09:37, Pavel Andrejs wrote:
> Hi,
>
> I have a question regarding bug 45106
> (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45106). I know it was
> closed as invalid, but I have a product, which relies on such
> typecasts. I noticed that when I compile it with g++ version 4.4, it
> crashes, but when I use g++ version 4.7 everything seems to work. My
> question is if there were some changes regarding these typecasts and I
> can rely on this in g++ 4.7 or whether this is just coincidence and I
> need to rewrite the code.

I don't think GCC was changed to support that intentionally, the code
is still invalid and not guaranteed to work.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-07  8:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07  8:38 casting variadic function pointer to non-variadic function pointer Pavel Andrejs
2014-04-07  8:57 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).