This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45940] [trans-mem] Error of unsafe function even if annotated
- From: "aldyh at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Nov 2010 13:44:59 +0000
- Subject: [Bug c++/45940] [trans-mem] Error of unsafe function even if annotated
- Auto-submitted: auto-generated
- References: <bug-45940-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45940
--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2010-11-23 13:44:45 UTC ---
I have a patch to fix this problem, but I also see that the provided testcase
has another error message which I think is correct:
In file included from src/Building.cpp:77:0:
src/Building.cpp:56:34: error: unsafe function call 'void std::list<_Tp,
_Alloc>::push_back(const value_type&) [with _Tp = Building*, _Alloc =
std::allocator<Building*>, value_type = Building*]' within 'transaction_safe'
function
push_back() is not annotated as transaction_pure.
Please verify that this is the case on your end, because my upcoming patch will
only fix the error in the PR, not this additional error I see.