Just like PR 21420 but this is for C++ and is a regression from 2.95.3 and not from 3.3.3. static inline void sigaddset(const int set, int i) { __asm__("" : "=r"(set) ); }
-- Summary: [3.4/4.0/4.1 Regression] Accepts writting to const via asm Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: accepts-invalid, diagnostic Severity: normal Priority: P2 Component: c++ 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=21421