public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* (c++) 2.95 regression for attributes on static memfn
@ 1999-07-16 12:52 Mumit Khan
0 siblings, 0 replies; only message in thread
From: Mumit Khan @ 1999-07-16 12:52 UTC (permalink / raw)
To: egcs-bugs
affected platform: ix86-*-*
The following snippet shows a problem with C++'s handling of attributes
on static member functions. This is a regression from egcs-1.1.2.
struct foo
{
static __attribute__((stdcall)) bool (*fp)(int);
};
bool __attribute__((stdcall)) (* foo::fp)(int);
Compiling this gives the error:
c++-pf-attrib.ii:6: conflicting types for `bool (* foo::fp)(int)'
c++-pf-attrib.ii:3: previous declaration as `bool (* foo::fp)(int)'
start_decl
duplicate_decls
decls_match
comptypes
COMP_TYPE_ATTRIBUTES (i386_comp_type_attributes)
When COMP_TYPE_ATTRIBUTES is called with the two function types,
the newdecl is missing the attributes,and consequently
i386_comp_type_attributes returns 0.
Regards,
Mumit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-07-16 12:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-16 12:52 (c++) 2.95 regression for attributes on static memfn Mumit Khan
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).