[Bug middle-end/107793] New: trivial-auto-var-init=pattern invalid uninitialized variable warning

2022-11-21 Thread larsbj at gullik dot net via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 53936 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53936=edit Preprocessed source This is m

[Bug tree-optimization/104017] unexpected -Warray-bounds popping a fixed number of std::deque elements

2022-05-12 Thread larsbj at gullik dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104017 --- Comment #6 from Lars Gullik Bjønnes --- This is from a report I made in private to Martin, for GCC12. That tidbit seems to have been lost in the bug creation.

[Bug tree-optimization/104017] unexpeted -Warray-bounds popping a fixed number of std::deque elements

2022-01-18 Thread larsbj at gullik dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104017 Lars Gullik Bjønnes changed: What|Removed |Added CC||larsbj at gullik dot net

[Bug c++/93250] New: [10 Regression] ICE: in sign_mask, at wide-int.h:855

2020-01-13 Thread larsbj at gullik dot net
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 47644 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47644=edit Source showing the ICE g++ (GCC) 10.0.0 20200111 (experimental) (from new git r

[Bug c++/93143] [10 Regression] Multiple calls to static constexpr member function gives wrong code

2020-01-07 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93143 --- Comment #1 from Lars Gullik Bjønnes --- Forgot to mention that it works nicely with GCC 9.

[Bug c++/93143] New: Multiple calls to static constexpr member function gives wrong code

2020-01-03 Thread larsbj at gullik dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 47586 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47586=edit Source showing problem. This is with g++ (

[Bug c++/89315] New: Cannot convert to std::initializer_list - fails with gcc9 works with gcc8

2019-02-12 Thread larsbj at gullik dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 45675 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45675=edit Soruce that works with gcc8 fails with g

[Bug c++/89241] New: ICE in enclosing_instantiation_of, at cp/pt.c:13380

2019-02-07 Thread larsbj at gullik dot net
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 45635 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45635=edit Reduced sources showing ICE With the attached reduced from code using Boost.Asi

[Bug c++/87476] New: [9 Regression] char-array initialized from wide-string

2018-10-01 Thread larsbj at gullik dot net
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 44771 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44771=edit Source showing error Using g++ -v Using built-in specs. COLLECT_GCC=/opt/

[Bug c++/87463] New: ICE in in tsubst_copy, at cp/pt.c:15513

2018-09-28 Thread larsbj at gullik dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Created attachment 44764 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44764=edit Source file showing the problem When I compile the attached code I get this ICE: g++ -v Us

[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733

2018-01-16 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814 --- Comment #10 from Lars Gullik Bjønnes --- (In reply to David Malcolm from comment #8) > Sorry about the breakage. > > Here's a candidate patch: > https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01133.html This fixes the ICE for me, with the

[Bug c/70475] New: -Wmisleading-indentation quetionable in Eigen

2016-03-31 Thread larsbj at gullik dot net
Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- In Eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page), this construct is used to group things: void do_stuff(); void do_other_stuff(); int main

[Bug c++/69970] Surprising warning with -Wnonnull-compare - 'this' compared to NULL

2016-02-26 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69970 --- Comment #3 from Lars Gullik Bjønnes --- The warning might be right, but is very unhelpful. Also with gcc 5 I get no warning (and seeming working code). Note that this is reduced (and thus a bit strange) from a much larger code base.

[Bug c++/69970] New: Surprising warning with -Wnonnull-compare - 'this' compared to NULL

2016-02-25 Thread larsbj at gullik dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Target Milestone: --- Compiling this snippet: class Foo { public: explicit Foo(bool) {} }; class Bar { public: Bar() : foo_

[Bug sanitizer/68122] New: ICE in gcc/toplev.c:353 with -fsanitize=undefined and -fgnu-tm

2015-10-27 Thread larsbj at gullik dot net
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone

[Bug sanitizer/68122] ICE in gcc/toplev.c:353 with -fsanitize=undefined and -fgnu-tm

2015-10-27 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68122 --- Comment #1 from Lars Gullik Bjønnes --- Command used to call: gcc -fsanitize=undefined -fgnu-tm tm-thread.c

[Bug sanitizer/65081] New: -fsanitize=object-size fails with simple pointer arithm

2015-02-16 Thread larsbj at gullik dot net
Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org With: gcc (GCC) 5.0.0

[Bug sanitizer/65000] ICE in in expand_builtin_eh_common, at except.c:2072

2015-02-10 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65000 --- Comment #2 from Lars Gullik Bjønnes larsbj at gullik dot net --- Created attachment 34711 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34711action=edit preprocessed source for test code in #1

[Bug sanitizer/65000] ICE in in expand_builtin_eh_common, at except.c:2072

2015-02-10 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65000 --- Comment #4 from Lars Gullik Bjønnes larsbj at gullik dot net --- Created attachment 34712 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34712action=edit preprocesed source for second code snippet

[Bug sanitizer/65000] ICE in in expand_builtin_eh_common, at except.c:2072

2015-02-10 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65000 --- Comment #3 from Lars Gullik Bjønnes larsbj at gullik dot net --- This is a different code snippet to get what seems to be the same error: --- #include ostream int f(unsigned int datalen); class Streambuf : public std

[Bug sanitizer/65000] New: ICE in in expand_builtin_eh_common, at except.c:2072

2015-02-10 Thread larsbj at gullik dot net
Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org With this test program I get an ICE

[Bug sanitizer/64984] [5 Regression] ICE in check_noexcept_t with ubsan

2015-02-10 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64984 --- Comment #4 from Lars Gullik Bjønnes larsbj at gullik dot net --- (In reply to Jakub Jelinek from comment #3) Created attachment 34710 [details] gcc5-pr64984.patch Untested fix. This seems to fix ICE, but I have at least one more

[Bug sanitizer/65000] ICE in in expand_builtin_eh_common, at except.c:2072

2015-02-10 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65000 --- Comment #7 from Lars Gullik Bjønnes larsbj at gullik dot net --- Note that my last tests is done with the proposed fix for bug 64984 applied.

[Bug sanitizer/64984] New: [5 Regression] ICE in check_noexcept_t with ubsan

2015-02-09 Thread larsbj at gullik dot net
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org With this test program I get an ICE

[Bug ipa/64218] [5 Regression] ICE: Segmentation fault (symtab_node::get_alias_target()) running Boost testsuite

2015-01-14 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64218 Lars Gullik Bjønnes larsbj at gullik dot net changed: What|Removed |Added CC||larsbj

[Bug ipa/64314] [5 Regression] ICE in record_reference, at cgraphbuild.c:87

2015-01-14 Thread larsbj at gullik dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64314 --- Comment #2 from Lars Gullik Bjønnes larsbj at gullik dot net --- I still see this, but with current gcc5 the call stack has become a bit deeper, instead of 5 calls to walk_tree_1 I now see 9 calls. (with -std=gnu++14 in this case.)

[Bug c++/64314] New: [5 Regression] ICE in record_reference, at cgraphbuild.c:87

2014-12-15 Thread larsbj at gullik dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Compiling this: #include string enum profile_type {}; struct A { std::string value; }; struct { profile_type type; A strategies[1]; } a{}; with: g++ -std=gnu

[Bug sanitizer/61693] New: [asan] is not intercepting aligned_alloc

2014-07-03 Thread larsbj at gullik dot net
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org cat aligned_alloc.c #include stdlib.h int main(void

[Bug c++/61678] New: internal compiler error: in expand_expr_real_1, at expr.c:9467

2014-07-02 Thread larsbj at gullik dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net $ cat main.ii struct Test { Test(); }; Test::Test() { int w = 512; unsigned rgb_ref[1][w]; } Gives this error: $ /opt/gcc/gcc-trunk/bin/g++ -c

[Bug c++/61603] New: ICE in gcc/gcc/toplev.c:337

2014-06-25 Thread larsbj at gullik dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Created attachment 33004 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33004action=edit Preprosessed file When compiling a test file consisting of only a #include boost/asio.hpp line. I get the following ICE

[Bug c++/61004] [4.10 Regression] Spurious warning: dereferencing type-punned pointer

2014-04-30 Thread larsbj at gullik dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61004 --- Comment #7 from Lars Gullik Bjønnes larsbj at gullik dot net --- (In reply to Richard Biener from comment #6) Created attachment 32713 [details] untested patch This fixes the problem for me, in my application.

[Bug c++/61007] New: New strict-aliasing warnings in 4.10.0

2014-04-29 Thread larsbj at gullik dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Created attachment 32707 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32707action=edit gzipped preprossed code showing the problem In current trunk I get some new strict-aliasing warnings that I did

[Bug libstdc++/60710] New: experimental::optionalT is using T::operator!=

2014-03-30 Thread larsbj at gullik dot net
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net When looking at n3793 it states that operator!= should be implemented with !(t1 == t2), and not t1 != t2 as the implementation in gcc 4.9 is doing. This is the case for both the operator

[Bug libstdc++/60710] experimental::optionalT is using T::operator!=

2014-03-30 Thread larsbj at gullik dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60710 Lars Gullik Bjønnes larsbj at gullik dot net changed: What|Removed |Added CC||larsbj

[Bug c++/59886] New: ICE in expand_expr_real_2

2014-01-20 Thread larsbj at gullik dot net
: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net Created attachment 31897 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31897action=edit Reduced preprocessed code. g++ --version g++ (GCC) 4.9.0 20140120 (experimental) as of rev 206794 When compiling the attached

[Bug c++/59886] ICE in expand_expr_real_2

2014-01-20 Thread larsbj at gullik dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59886 Lars Gullik Bjønnes larsbj at gullik dot net changed: What|Removed |Added CC

[Bug c++/59886] ICE in expand_expr_real_2

2014-01-20 Thread larsbj at gullik dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59886 --- Comment #3 from Lars Gullik Bjønnes larsbj at gullik dot net --- Yes, the compiler is built with: ../gcc/configure --prefix=/opt/gcc/gcc-trunk --enable-checking=release --enable-languages=c,c++,lto

[Bug sanitizer/59667] New: ubsan: ICE ubsan_type_descriptor

2014-01-03 Thread larsbj at gullik dot net
Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org This is with gcc --version gcc (GCC) 4.9.0 20140103 (experimental

[Bug sanitizer/59331] New: ubsan gives extra warnings with vla.

2013-11-28 Thread larsbj at gullik dot net
Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org g++ (GCC) 4.9.0 20131128 (experimental) Copyright (C) 2013 Free

[Bug sanitizer/59307] New: ICE with boost::format and ubsan

2013-11-26 Thread larsbj at gullik dot net
Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Created attachment 31304 -- http://gcc.gnu.org/bugzilla

[Bug middle-end/19583] [4.0 Regression] Incorrect diagnostic: control may reach end of non-void function '...' being inlined

2005-01-29 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-29 19:09 --- This does not seem to be fixed so reopening. -- What|Removed |Added CC

[Bug middle-end/19699] [4.0 Regression] warning about not returning from end of a non-void function because of dead code

2005-01-29 Thread larsbj at gullik dot net
-- What|Removed |Added CC||larsbj at gullik dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19699

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-05 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-05 18:14 --- (In reply to comment #17) Lars, can you maybe describe how to reproduce this starting from the lyx tarball? (I.e. which tarball to download, how to configure so that it uses PCH etc.) As of today

[Bug c++/19241] New: ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: larsbj at gullik dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686

[Bug c++/19241] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 16:22 --- Just a comment before I begin work to create a testcase that is abit smaller than the whole lyx distribution. If I turn off concept checks the ICE goes away. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug c++/19241] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 18:25 --- Ok, do you want a tar file with the setup to reproduce or do you want me to attach ~100 attachments to this case with all the files needed to reproduce? And reading gcc.gnu.org does not make it easier to create

[Bug c++/19241] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 19:21 --- I get a bit further with that, but I am not able to reproduce the error with the resulting .ii file together with the pch.h (and pch.h.gch) file. Instead I get stuck with myriads or errors similar

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 19:56 --- Then I am at a loss. I am only able to reproduce with the full lyx tree, when using the preprocessed files I get errors about 'std' not being defined. (etc) How did you compile the preprocessed sources to end up

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 20:19 --- (In reply to comment #11) grep -v ^# FormExternal.ii FormExternal.cc gcc FormExternal.cc -include pch.ii ok, my mistake was using g++ instead. Using the above I to get a clean compile (-c). So it is quite

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 20:22 --- (In reply to comment #12) ok, my mistake was using g++ instead. Not having done the grep more likely, and trying to compile the .ii file directly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19241

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
--- Additional Comments From larsbj at gullik dot net 2005-01-03 20:28 --- (In reply to comment #12) grep -v ^# FormExternal.ii FormExternal.cc gcc FormExternal.cc -include pch.ii So it is quite obvious that just using preprocessed sources will not show the ICE. If I compile

[Bug c++/19241] [4.0 Regression] ICE in make_decl_rtl, at varasm.c:867

2005-01-03 Thread larsbj at gullik dot net
-- What|Removed |Added Status|WAITING |NEW Ever Confirmed||1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19241