[Bug c++/96543] null check on template pointer parameter fails

2020-08-10 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96543 --- Comment #2 from Vlad Petric --- Got it, should I refile/change this bug?

[Bug c++/96543] New: null check on template pointer parameter fails

2020-08-09 Thread vlad at petric dot cc
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vlad at petric dot cc Target Milestone: --- static unsigned c = 0; template struct A { static void test() { if constexpr (c) ++ *c; } }; int main() { A<>::test(); A::test(); } The error is:

[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union

2016-12-06 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #10 from Vlad Petric --- Could someone boost its priority? Given that gcc segfaults with valid code (see newest example/attachment), I believe it's worth a P1.

[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union

2016-12-02 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #9 from Vlad Petric --- Created attachment 40235 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40235=edit Compliant code that segfaults the compiler

[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union

2016-12-02 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #8 from Vlad Petric --- (In reply to Vlad Petric from comment #7) > Ok, so the example that I started this bug with is not standard compliant > because it initialized different elements in a union with the constexpr > constructor. >

[Bug c++/78551] [5/6/7 Regression] Internal compiler error with constexpr initialization of union

2016-12-01 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #7 from Vlad Petric --- Ok, so the example that I started this bug with is not standard compliant because it initialized different elements in a union with the constexpr constructor. The following does just one. I believe that the

[Bug c++/78551] Internal compiler error with constexpr initialization of union

2016-11-27 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #2 from Vlad Petric --- Created attachment 40167 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40167=edit Code with constexpr that fails

[Bug c++/78551] Internal compiler error with constexpr initialization of union

2016-11-27 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551 --- Comment #1 from Vlad Petric --- Created attachment 40166 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40166=edit code that fails as attachment

[Bug c++/77771] internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2090

2016-11-27 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1 --- Comment #3 from Vlad Petric --- Sorry - accidentally added test case attachment to this bug. The bug I reported is likely related https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551

[Bug c++/77771] internal compiler error: in cxx_eval_bit_field_ref, at cp/constexpr.c:2090

2016-11-27 Thread vlad at petric dot cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1 --- Comment #2 from Vlad Petric --- Created attachment 40165 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40165=edit code that fails

[Bug c++/78551] New: Internal compiler error with constexpr initialization of union

2016-11-27 Thread vlad at petric dot cc
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vlad at petric dot cc Target Milestone: --- The following code ICEs: #include #include struct A { union { uint64_t s; char buff[8]; }; constexpr A(const char* str) : s(0

[Bug c++/66921] New: failure to determine size of static constexpr array that is nested within a templated class

2015-07-17 Thread vlad at petric dot cc
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vlad at petric dot cc Target Milestone: --- Created attachment 36010 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36010action=edit straightforward file

[Bug c/31792] New: ivopts generates slightly worse code for tight loop from zlib

2007-05-02 Thread vlad at petric dot cc
: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vlad at petric dot cc GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla

[Bug c/31792] ivopts generates slightly worse code for tight loop from zlib

2007-05-02 Thread vlad at petric dot cc
--- Comment #1 from vlad at petric dot cc 2007-05-02 19:36 --- Created an attachment (id=13498) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13498action=view) Isolated code which illustrates the ivopts issue -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31792

[Bug c/19685] New: ICE, in verify_local_live_at_start, at flow.c:574

2005-01-28 Thread vlad at petric dot cc
Version: 3.3.5 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vlad at petric dot cc CC: gcc-bugs at gcc dot gnu dot org,vlad at petric dot cc GCC build

[Bug c/19685] ICE, in verify_local_live_at_start, at flow.c:574

2005-01-28 Thread vlad at petric dot cc
--- Additional Comments From vlad at petric dot cc 2005-01-29 06:34 --- Created an attachment (id=8097) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8097action=view) preprocessed sourcecode -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19685