[Dune] [#491] PoolAllocator not 64 bit clean

Dune dune at dune-project.org
Tue Dec 1 20:27:11 CET 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#491 - PoolAllocator not 64 bit clean
User who did this - Elias Pipping (pipping)

----------
$ rm fs_493_testcase_a; CXXFLAGS='-fstrict-aliasing -Wstrict-aliasing=1' make
g++ -fstrict-aliasing -Wstrict-aliasing=1 -std=c++0x -O2 -I.   fs_493_testcase_a.cc   -o fs_493_testcase_a
In file included from fs_493_testcase_a.cc:1:
../poolallocator.hh: In member function 'T* Dune::Pool<T, s>::allocate() [with T = Element, long unsigned int s = 130816ul]':
../poolallocator.hh:554:   instantiated from 'T* Dune::PoolAllocator<T, s>::allocate(size_t, const T*) [with T = Element, long unsigned int s = 8176ul]'
fs_493_testcase_a.cc:39:   instantiated from here
../poolallocator.hh:540: warning: dereferencing type-punned pointer might break strict-aliasing rules
fs_493_testcase_a: fs_493_testcase_a.cc:65: int main(): Assertion `alist.beforeHead_.next_->item_ == 1' failed.
make: *** [run] Aborted
$ rm fs_493_testcase_a; CXXFLAGS='-fstrict-aliasing -Wstrict-aliasing=2' make
g++ -fstrict-aliasing -Wstrict-aliasing=2 -std=c++0x -O2 -I.   fs_493_testcase_a.cc   -o fs_493_testcase_a
fs_493_testcase_a: fs_493_testcase_a.cc:65: int main(): Assertion `alist.beforeHead_.next_->item_ == 1' failed.
make: *** [run] Aborted
$ 
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=491#comment1401

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list