Bug 45191 - unqualified atomic access
Summary: unqualified atomic access
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: unknown
: P3 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 45193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-05 08:50 UTC by Benjamin Kosnik
Modified: 2011-01-11 16:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Kosnik 2010-08-05 08:50:37 UTC
current implementation has issues with namespace scopes and allows unqualified access, ie:

#include <atomic>

int main()
{
  atomic_int ai;
  return 0;
}

this should require std::atomic_int
Comment 1 Paolo Carlini 2010-08-05 09:34:47 UTC
*** Bug 45193 has been marked as a duplicate of this bug. ***
Comment 2 Paolo Carlini 2011-01-11 16:32:54 UTC
As far as I can see, this is fixed in mainline.