public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6626: __attribute__ doen not works with function pointers
@ 2002-12-10 15:46 ehrhardt
0 siblings, 0 replies; 3+ messages in thread
From: ehrhardt @ 2002-12-10 15:46 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, serge
Synopsis: __attribute__ doen not works with function pointers
State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Tue Dec 10 15:45:54 2002
State-Changed-Why:
The placement of __attribute__ is wrong. See the message cited by
Wolfgang for a more detailed explanation.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6626
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6626: __attribute__ doen not works with function pointers
@ 2002-10-22 8:36 Wolfgang Bangerth
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Bangerth @ 2002-10-22 8:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/6626; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc: danny_r_smith_2001@yahoo.co.nz
Subject: Re: c++/6626: __attribute__ doen not works with function pointers
Date: Tue, 22 Oct 2002 10:29:10 -0500 (CDT)
Given this message
http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg00809.html
shouldn't this report be closed as a user/syntax error?
Although I must agree that the error message
invalid conversion from `void (*)(int*)' to `void (*)(int*)'
is not exactly enlightening... (The two function pointers have different
attributes, which are not represented in the error message.)
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/6626: __attribute__ doen not works with function pointers
@ 2002-05-10 11:36 serge
0 siblings, 0 replies; 3+ messages in thread
From: serge @ 2002-05-10 11:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6626
>Category: c++
>Synopsis: __attribute__ doen not works with function pointers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri May 10 11:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Sergey Grigoriev
>Release: gcc version 3.1 20020423 (prerelease)
>Organization:
>Environment:
Cygwin
>Description:
__attribute__((__stdcall__)) void test(int *x)
{
*x = 1;
}
int main(void)
{
__attribute__((__stdcall__)) void (*local)(int *x);
//this line produces NO error in C++ and C
local = (void (*)(int*)) test;
//this line produces error in C++ (and works in C)
//error message: invalid conversion from `void (*)(int*)' to `void (*)(int*)'
local = test;
}
>How-To-Repeat:
see source in description
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-10 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 15:46 c++/6626: __attribute__ doen not works with function pointers ehrhardt
-- strict thread matches above, loose matches on Subject: below --
2002-10-22 8:36 Wolfgang Bangerth
2002-05-10 11:36 serge
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).