Opened 13 years ago

Last modified 7 years ago

#129 assigned defect

GCC: __attribute__((__system__)) loses its meaning after applying it to a static function of a class

Reported by: dmik Owned by: bird
Priority: normal Milestone: libc-0.7
Component: gcc Version: 0.6.1
Severity: critical Keywords:
Cc:

Description

If we have a C++ class that has a static function using attribute((system)) (in the form of APIENTRY for example), then this attribute becomes a no-op for all subsequent functions that use, so that these functions are generated using the default (cdecl?) convention (at least, they are prefixed with an underscore).

Attachments (1)

129.zip (967 bytes) - added by dmik 13 years ago.
test case for ticket:129

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by dmik

test case for ticket:129

comment:1 Changed 13 years ago by dmik

Do

make bug

to see a bug or

make

to see that without __attribute__((__system__)) on a class member, it compiles well.

comment:2 Changed 12 years ago by bird

  • Milestone set to libc-0.6.4

comment:3 Changed 8 years ago by bird

  • Status changed from new to assigned

comment:4 Changed 7 years ago by bird

  • Milestone changed from libc-0.6.5 to libc-0.7
Note: See TracTickets for help on using tickets.