Bug 21422 - [4.0/4.1 Regression] Accepts writting to const via asm
Summary: [4.0/4.1 Regression] Accepts writting to const via asm
Status: RESOLVED DUPLICATE of bug 21419
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.2
Assignee: Not yet assigned to anyone
URL:
Keywords: accepts-invalid, diagnostic
Depends on:
Blocks:
 
Reported: 2005-05-06 14:55 UTC by Andrew Pinski
Modified: 2005-09-25 12:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 3.4.0 3.3.3
Known to fail: 4.0.0 4.1.0
Last reconfirmed: 2005-09-10 02:57:17


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-05-06 14:55:50 UTC
Like PR 21419 but for C++:
void sigaddset(const int set)
{
        __asm__("" : "=m"(set) );
}
Comment 1 Andrew Pinski 2005-05-09 20:47:18 UTC
: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455).
Again since the tree-ssa was merged in.
Comment 2 Paolo Bonzini 2005-09-25 12:36:54 UTC
This can be diagnosed in the middle-end, so it would work for C and C++ the same.

*** This bug has been marked as a duplicate of 21419 ***