[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 Markus Trippelsdorf changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 --- Comment #7 from Marc Glisse --- Reduced a bit more: struct B { B(); void m_fn2(int p1) { if (p1 <= storage_) throw; } int storage_; }; void f() { B span_; int b = span_.storage_; span_.m_fn2(b - 1); } The warning see

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread rianquinn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 --- Comment #6 from Rian Quinn --- Correct me if I'm wrong, but it would appear that this is indeed an bug with GCC (based on current activity). If that is the case, what would be your recommendations on how to resolve this issue in the GSL. At t

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 --- Comment #5 from Markus Trippelsdorf --- markus@x4 tmp % cat string_span_tests.ii class A { public: using index_type = int; index_type m_fn1() { return size_; } index_type size_; }; struct B { using element_type = int; using index_ty

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|WAITING

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread rianquinn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 --- Comment #3 from Rian Quinn --- Created attachment 39908 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39908&action=edit ii and s file

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread rianquinn at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 --- Comment #2 from Rian Quinn --- The output: Using built-in specs. COLLECT_GCC=/usr/bin/c++ Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc

[Bug c++/78130] Strict overflow warning appears to be invalid

2016-10-27 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78130 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|