#include <objc/Object.h> @interface Test : Object -(void) test2: (volatile int )a; @end
@implementation Test -(void) test2: (volatile int) a { a = 1; } @end void f(volatile int a) { a = 1; } -- Summary: [4.0 regression] objc ignores volatile in argument types for messages Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: critical Priority: P2 Component: objc AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19321