[Bug libstdc++/85319] New: std::char_traits::length does not always function in constexpr context

2018-04-10 Thread v at vsamko dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- This fails to compile with "error: non-constant condition for static assertion static_assert(std::char_traits::length

[Bug c++/85815] New: incorrect "invalid use of incomplete type" in a lambda on valid code

2018-05-17 Thread v at vsamko dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- This valid code: template class A { static A* INSTANCE; void foobar(); void moo() {} }; template A* A::INSTANCE

[Bug c++/89596] [8/9 regression] Multiple templated conversion operators result in compilation error

2019-04-02 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89596 Valentine changed: What|Removed |Added CC||v at vsamko dot com --- Comment #3 from

[Bug c++/83534] C++17: typeinfo for noexcept function lacks noexcept information

2019-06-03 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83534 Valentine changed: What|Removed |Added CC||v at vsamko dot com --- Comment #1 from

[Bug c++/90731] New: regression - noexcept broken for forward declarations with decltype

2019-06-03 Thread v at vsamko dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- void foo1() noexcept(true) {} decltype(foo1) stub_foo1; void stub_foo1() noexcept(true) {} This compiles fine with clang 8 and gcc 8.3, but

[Bug c++/90732] New: regression - ICE with std::apply after variable length array

2019-06-03 Thread v at vsamko dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- With -O0 -std=c++17 this results in ICE #include #include volatile size_t SIZE = 100; template void foo(Ts&... out) { std::tuple d

[Bug c++/90732] regression - ICE with std::apply after variable length array

2019-06-03 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90732 --- Comment #1 from Valentine --- Simpler example without any include's: === volatile int SIZE = 100; template void bar(T t, U... u) { t(u...); } template void foo(Ts&... out) { char buf[SIZE]; bar([&buf, &out...](auto&... x) { (x,

[Bug c++/90740] New: regression - Incorrect warning (is used uninitialized in this function)

2019-06-04 Thread v at vsamko dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- We are not "using" `buf` there. We are passing it by reference, which is a valid code and it shouldn't raise any warnin

[Bug c++/90740] VLA with lamba causes an incorrect unitialized in this function warning

2019-06-04 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90740 --- Comment #3 from Valentine --- Yep, it uses GCC extension. Interesting observation that it complains about the size of buffer, that looks to be correct as if I change to === char buf[SIZE]; char* pbuf = buf; bar([pbuf, &out...](au

[Bug c++/87229] New: ICE: tree code 'call_expr' is not supported in LTO streams

2018-09-05 Thread v at vsamko dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- This works fine with gcc 7 and ealier. Gcc 8 and trunk have this problem. Compiling with "-flto" === struct Main { Main(char* x);

[Bug lto/81847] ICE with LTO enabled

2017-08-15 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81847 --- Comment #2 from Valentine --- (In reply to Andrew Pinski from comment #1) > Try -flto-partition=one which might allow this to be reduced further. Thanks, just tried -flto-partition=one, still the same ICE. Other -flto-partition options didn'

[Bug c++/81884] New: Invalid code generation with zero size arrays or flexible array members

2017-08-18 Thread v at vsamko dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: v at vsamko dot com Target Milestone: --- Code below prints 1 2 13 14 BUG DETECTED when compiled with "-Wfatal-errors -O3 bug2.cpp -o bug2 --save-temps -Wall&

[Bug lto/81847] ICE with LTO enabled

2017-08-18 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81847 --- Comment #4 from Valentine --- Created attachment 42002 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42002&action=edit code to reproduce ICE I reduced (thanks to suggestions above and CReduce) this to the attached example. g++ -w -fl

[Bug tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members

2017-08-24 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884 --- Comment #7 from Valentine --- Many thanks for this ! Are there any plans to merge this into 7.2.0 and into any future 7.x releases? If not, is it safe for me just to apply this patch to 7.2 locally and rebuild?

[Bug c++/81042] Too many constexpr interations on unreachable loop.

2017-10-03 Thread v at vsamko dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81042 Valentine changed: What|Removed |Added CC||v at vsamko dot com --- Comment #3 from