* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
@ 2006-11-20 15:50 ` pinskia at gcc dot gnu dot org
2007-12-14 20:26 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-20 15:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-11-20 15:50 -------
*** Bug 29911 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |massimiliano dot ghilardi at
| |gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
2006-11-20 15:50 ` [Bug c++/9381] attribute on member function pointer have no effect pinskia at gcc dot gnu dot org
@ 2007-12-14 20:26 ` pinskia at gcc dot gnu dot org
2008-07-11 7:41 ` techrazy dot yang at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-14 20:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2007-12-14 20:26 -------
*** Bug 34468 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bruce_pedersen at altera dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
2006-11-20 15:50 ` [Bug c++/9381] attribute on member function pointer have no effect pinskia at gcc dot gnu dot org
2007-12-14 20:26 ` pinskia at gcc dot gnu dot org
@ 2008-07-11 7:41 ` techrazy dot yang at gmail dot com
2008-07-11 7:44 ` techrazy dot yang at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: techrazy dot yang at gmail dot com @ 2008-07-11 7:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from techrazy dot yang at gmail dot com 2008-07-11 07:41 -------
(In reply to comment #1)
> From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
> To: drepper@redhat.com
> Cc: gcc-gnats@gcc.gnu.org
> Subject: Re: c++/9381: stdcall attribute ignored in member function pointer type
> Date: Tue, 21 Jan 2003 15:10:30 +0100
>
> On Tue, Jan 21, 2003 at 04:52:51AM -0000, drepper@redhat.com wrote:
> > The attached file is miscompiled since the stdcall attribute is ignored in the fp type definition. The result it that in the function bar the parameters are popped from the stack even though they have already been removed by the called fucntion (f1 in this case).
>
> The answer to this non bug used to be: "The placement of your __attribute__
> is wrong". This should be the proper placement:
>
> typedef int (__attribute__ ((stdcall)) foo::*fp)(int);
>
> However, with the new parser this gives a parse error :-(
> The following gives a warning with 3.4 but works with all gcc versions, it
> is documented as an extension though:
>
> typedef int (foo::*__attribute__ ((stdcall)) fp) (int);
I am afraid, but this did not work in gcc 4.3.0, now. I add this, but still
failed with a SIGFAULT...
I attach my litter test case file, please try to compile it with g++ 4.3.0, and
it will fail...
--
techrazy dot yang at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |techrazy dot yang at gmail
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2008-07-11 7:41 ` techrazy dot yang at gmail dot com
@ 2008-07-11 7:44 ` techrazy dot yang at gmail dot com
2009-10-09 13:24 ` jacek at codeweavers dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: techrazy dot yang at gmail dot com @ 2008-07-11 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from techrazy dot yang at gmail dot com 2008-07-11 07:43 -------
Created an attachment (id=15898)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15898&action=view)
The testcase fail g++ 4.3.0
>From this bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11893, we know the
typeof operator make all things correctly. But in gcc 4.3.0, this operator
failed, too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2008-07-11 7:44 ` techrazy dot yang at gmail dot com
@ 2009-10-09 13:24 ` jacek at codeweavers dot com
2009-11-06 4:56 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: jacek at codeweavers dot com @ 2009-10-09 13:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jacek at codeweavers dot com 2009-10-09 13:24 -------
(In reply to comment #6)
> Not a regression any more.
It is a regression now. It worked in 3.4 and doesn't work in 4.x. That's why
I'm still using GCC 3.4.6.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2009-10-09 13:24 ` jacek at codeweavers dot com
@ 2009-11-06 4:56 ` jason at gcc dot gnu dot org
2009-11-06 21:19 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-06 4:56 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-12-11 23:05:52 |2009-11-06 04:56:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2009-11-06 4:56 ` jason at gcc dot gnu dot org
@ 2009-11-06 21:19 ` jason at gcc dot gnu dot org
2009-11-07 19:46 ` jason at gcc dot gnu dot org
2009-11-07 20:25 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-06 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from jason at gcc dot gnu dot org 2009-11-06 21:18 -------
Subject: Bug 9381
Author: jason
Date: Fri Nov 6 21:18:35 2009
New Revision: 153977
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153977
Log:
PR c++/9381
* decl2.c (build_memfn_type): Preserve attributes.
(cp_reconstruct_complex_type): Likewise.
(maybe_retrofit_in_chrg): Likewise.
* call.c (standard_conversion): Use build_memfn_type.
* pt.c (tsubst): Likewise.
* decl.c (build_ptrmem_type): Likewise
(check_function_type): Preserve attributes.
* tree.c (cp_build_type_attribute_variant): Propagate exception
specs on METHOD_TYPE, too.
(strip_typedefs): Preserve exception specs and attributes.
Added:
trunk/gcc/testsuite/g++.dg/abi/regparm1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/class.c
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2009-11-06 21:19 ` jason at gcc dot gnu dot org
@ 2009-11-07 19:46 ` jason at gcc dot gnu dot org
2009-11-07 20:25 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-07 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from jason at gcc dot gnu dot org 2009-11-07 19:46 -------
Subject: Bug 9381
Author: jason
Date: Sat Nov 7 19:45:56 2009
New Revision: 153998
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153998
Log:
PR c++/9381
* decl2.c (build_memfn_type): Preserve attributes.
* tree.c (canonical_type_variant): Likewise.
* call.c (standard_conversion): Use build_memfn_type.
* pt.c (tsubst): Likewise.
* decl.c (build_ptrmem_type): Likewise
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/abi/regparm1.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/call.c
branches/gcc-4_4-branch/gcc/cp/decl.c
branches/gcc-4_4-branch/gcc/cp/decl2.c
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/cp/tree.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/9381] attribute on member function pointer have no effect
[not found] <bug-9381-700@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2009-11-07 19:46 ` jason at gcc dot gnu dot org
@ 2009-11-07 20:25 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-07 20:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from jason at gcc dot gnu dot org 2009-11-07 20:24 -------
Fixed for 4.4.3. The patch for 4.4 applied fine to 4.3, but didn't fix the bug
there for some reason.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9381
^ permalink raw reply [flat|nested] 11+ messages in thread