public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Colin McCormack <colin@field.medicine.adelaide.edu.au>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/6432: __builtin_apply() rejected by g++ - per PR 102
Date: Tue, 23 Apr 2002 17:16:00 -0000	[thread overview]
Message-ID: <20020424001602.26741.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/6432; it has been noted by GNATS.

From: Colin McCormack <colin@field.medicine.adelaide.edu.au>
To: jason@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/6432: __builtin_apply() rejected by g++ - per PR 102
Date: Wed, 24 Apr 2002 10:09:29 +1000

 On Wednesday 24 April 2002 09:58, jason@gcc.gnu.org wrote:
 > As Gaby said when closing PR 102, you can make this work by casting fn1
 > to (void (*)(...)) instead of (void (*)()).
 
 Gaby was mistaken.
 
 Gaby must, as far as I can tell, have been compiling it under gcc and not g++.
 
 Evidence (code modified as per Gaby's suggestion):
 
 extern void fn1();
 void fn (int b){
    __builtin_apply( (void (*)(...))fn1,
                    __builtin_apply_args(),
                    32);
 }
 
 Output:
 g++ builtin_apply.cc
 builtin_apply.cc: In function `void fn(int)':
 builtin_apply.cc:5: argument passing to `void * ()(unsigned int)' from `void 
 *'
 Compilation exited abnormally with code 1 at Wed Apr 24 10:01:44
 
 Conclusion:
 
 Problem still exists.
 
 Please re-open the PR.
 
 Colin.
 
 On Wednesday 24 April 2002 09:58, jason@gcc.gnu.org wrote:
 > Synopsis: __builtin_apply() rejected by g++ - per PR 102
 >
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: jason
 > State-Changed-When: Tue Apr 23 16:58:41 2002
 > State-Changed-Why:
 >     As Gaby said when closing PR 102, you can make this work by casting fn1
 > to (void (*)(...)) instead of (void (*)()).
 >
 > 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6432


             reply	other threads:[~2002-04-24  0:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 17:16 Colin McCormack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-26  2:10 nathan
2002-04-23 18:46 Jason Merrill
2002-04-23 17:16 Andrew Pinski
2002-04-23 16:58 jason
2002-04-23 16:46 colin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020424001602.26741.qmail@sources.redhat.com \
    --to=colin@field.medicine.adelaide.edu.au \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).