This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/41763] New: valarray_array.h seems to overuse __restrict__
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2009 14:05:09 -0000
- Subject: [Bug libstdc++/41763] New: valarray_array.h seems to overuse __restrict__
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
inline static void
_S_do_it(_Tp* __restrict__ __b, _Tp* __restrict__ __e)
{
while (__b != __e)
new(__b++) _Tp();
}
is invalid, the __restrict__ keywords say that __b and __e point to different
objects and you can't compare pointers to different objects.
--
Summary: valarray_array.h seems to overuse __restrict__
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41763