[Bug c++/92879] New: incorrect warning of __builtin_memset offset is out of the bounds on zero-size allocation and initialization

2019-12-09 Thread cas43 at cs dot stanford.edu
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- DIAGNOSTIC: g++ prog.cpp -c -Wall -O3 In constructor ‘S::S(int)’, inlined from ‘(static

[Bug c++/54927] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349

2012-10-14 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54927 Bug #: 54927 Summary: internal compiler error: in tsubst_copy, at cp/pt.c:12349 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED

[Bug c++/54928] New: Infinite output with after ICE with macro

2012-10-14 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54928 Bug #: 54928 Summary: Infinite output with after ICE with macro Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priorit

[Bug c++/54929] New: internal compiler error: in tsubst_copy, at cp/pt.c:12349

2012-10-14 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54929 Bug #: 54929 Summary: internal compiler error: in tsubst_copy, at cp/pt.c:12349 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED

[Bug c++/57945] New: internal compiler error: in varpool_get_node, at cgraph.h:840

2013-07-20 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu == Compiling this code: == static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); == like this: == g+

[Bug c++/57946] New: internal compiler error: Segmentation fault in int_fits_type_p

2013-07-20 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu when compiling this program: enum ENUM2 { ENUM2_a = (enum ENUM2) 4, ENUM2_b = 0x9FFF, ENUM2_c = 0x1 }; like this: g++ prog.cpp I get this

[Bug c++/57947] New: internal compiler error: Segmentation fault using extended initializer lists without -std=c++11 or -std=gnu++11

2013-07-20 Thread cas43 at cs dot stanford.edu
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Program: templateclass initializer_list {}; template struct D {D(std::initializer_list

[Bug c++/57948] New: internal compiler error: in initialize_reference, at cp/call.c:9285

2013-07-20 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu With this input: struct Base { }; struct Derived : Base { struct Derived2 : Base { struct ConvertibleToBothDerivedRef

[Bug c++/57947] internal compiler error: Segmentation fault using extended initializer lists without -std=c++11 or -std=gnu++11

2013-07-22 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57947 --- Comment #2 from Craig Schroeder --- Unfortunately that is because I tried cleaning up the test case some more after reducing it down. How about this: namespace std { template class initializer_list {}; template struct D {D(std::initializer

[Bug c++/50848] New: ICE in derived template class missing using for member of template base class

2011-10-24 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50848 Bug #: 50848 Summary: ICE in derived template class missing using for member of template base class Classification: Unclassified Product: gcc Version: 4.7.0 Status: U

[Bug c++/50851] New: ICE: verify_ssa failed, definition in block x does not dominate use in block y with -O2

2011-10-24 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50851 Bug #: 50851 Summary: ICE: verify_ssa failed, definition in block x does not dominate use in block y with -O2 Classification: Unclassified Product: gcc Version: 4.7.0

[Bug c++/50852] New: ICE: internal compiler error: in tsubst, at cp/pt.c:11030

2011-10-24 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50852 Bug #: 50852 Summary: ICE: internal compiler error: in tsubst, at cp/pt.c:11030 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/50861] New: ICE: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in tsubst_copy_and_build, at cp/pt.c:13526

2011-10-24 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50861 Bug #: 50861 Summary: ICE: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in tsubst_copy_and_build, at

[Bug c++/50872] New: internal compiler error: in inline_small_functions, at ipa-inline.c:1413

2011-10-25 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50872 Bug #: 50872 Summary: internal compiler error: in inline_small_functions, at ipa-inline.c:1413 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONF

[Bug c/52290] New: internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712

2012-02-16 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52290 Bug #: 52290 Summary: internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712 Classification: Unclassified Product

[Bug c++/58537] New: internal compiler error: in gen_rtx_SUBREG, at emit-rtl.c:776

2013-09-25 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Created attachment 30898 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30898&action=edit Program that triggers ICE When compiling the attached progr

[Bug c++/51152] New: error: X has no member named Y on code that seems valid

2011-11-15 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51152 Bug #: 51152 Summary: error: X has no member named Y on code that seems valid Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED

[Bug c++/51152] error: X has no member named Y on code that seems valid

2011-11-15 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51152 --- Comment #1 from Craig Schroeder 2011-11-16 06:14:29 UTC --- Created attachment 25832 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25832 File that fails to compile cleanly.

[Bug c++/51154] New: internal compiler error: gimplification failed

2011-11-15 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51154 Bug #: 51154 Summary: internal compiler error: gimplification failed Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/51154] internal compiler error: gimplification failed

2011-11-15 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51154 --- Comment #1 from Craig Schroeder 2011-11-16 07:28:29 UTC --- Created attachment 25834 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25834 Variation on same source causing failure with different message. This variant on the source file I

[Bug c++/51154] internal compiler error: gimplification failed

2011-11-15 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51154 --- Comment #2 from Craig Schroeder 2011-11-16 07:30:12 UTC --- Created attachment 25835 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25835 Another file variant causing a third diagnostic on ICE. This variant on the file produces the foll

[Bug c++/51488] New: ICE on infinite template recursion

2011-12-09 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51488 Bug #: 51488 Summary: ICE on infinite template recursion Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/51660] New: ICE on function missing argument list

2011-12-22 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51660 Bug #: 51660 Summary: ICE on function missing argument list Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/51661] New: ICE when template class list repeated

2011-12-22 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51661 Bug #: 51661 Summary: ICE when template class list repeated Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/84604] New: False positive "may be used uninitialized in this function" due to variable initialization eliminated as dead code

2018-02-27 Thread cas43 at cs dot stanford.edu
Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- WHAT HAPPENS: The compiler eliminates a=0; and b=0

[Bug c++/84604] False positive "may be used uninitialized in this function" due to variable initialization eliminated as dead code

2018-02-27 Thread cas43 at cs dot stanford.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84604 --- Comment #2 from Craig Schroeder --- I was under the impression I was allowed to call the destructor just like any other function. On further investigation, this is undefined behavior, so this bug report is invalid.

[Bug c++/55405] New: ICE with optimization

2012-11-19 Thread cas43 at cs dot stanford.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55405 Bug #: 55405 Summary: ICE with optimization Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/71210] New: internal compiler error: in assign_temp, at function.c:961

2016-05-19 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- PROGRAM: namespace std {class type_info { };} [[noreturn]] void f1(const std::type_info& type); struct S1{~S1();}; struct S2 { virtua

[Bug c++/80907] New: False positive: "warning: array subscript is above array bounds"

2017-05-28 Thread cas43 at cs dot stanford.edu
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- THIS PROGRAM: int x[3]; int n=2; void foo() { for(int i=0;i

[Bug c++/79139] New: warning: argument 1 null where non-null expected [-Wnonnull]

2017-01-18 Thread cas43 at cs dot stanford.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- THIS PROGRAM: void foo(int n) { int * p = 0; if(n>0) { if(4*n/3+2) p = new int[n]; } for(int i=0; i

[Bug c++/61392] New: internal compiler error: in write_template_arg_literal, at cp/mangle.c:3072

2014-06-02 Thread cas43 at cs dot stanford.edu
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu THIS PROGRAM: template struct A { }; template struct B { A ddx; template decltype(f(A(),ddx)) operator-(B) const; }; B f(A,A); B x,y=x-x

[Bug tree-optimization/61481] New: Poor optimization of simple small-sized matrix routines with constant data

2014-06-11 Thread cas43 at cs dot stanford.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Created attachment 32927 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32927&action=edit Output of the The following f

[Bug tree-optimization/61481] Poor optimization of simple small-sized matrix routines with constant data

2014-06-11 Thread cas43 at cs dot stanford.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61481 --- Comment #1 from Craig Schroeder --- The compiler used in the above compilation was: Using built-in specs. COLLECT_GCC=/home/craig/new-gcc/i-trunk/bin/g++ COLLECT_LTO_WRAPPER=/home/craig/new-gcc/i-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.

[Bug tree-optimization/61481] Poor optimization of simple small-sized matrix routines with constant data

2014-06-12 Thread cas43 at cs dot stanford.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61481 --- Comment #3 from Craig Schroeder --- Created attachment 32930 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32930&action=edit More practical (but more complex) example I am trying to optimize an auto-differentiation utility. The examp

[Bug c++/67468] New: compiler changes template argument

2015-09-06 Thread cas43 at cs dot stanford.edu
++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- When compiled with: g++ -c prog.cpp -Q The compiler output contains "B::x>" but the input contains "B::x>". The compiler has replaced the template argument R

[Bug other/63159] New: Demangler crash

2014-09-03 Thread cas43 at cs dot stanford.edu
: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu The demangler crashes when given this symbol

[Bug c++/63367] New: internal compiler error: tree check: expected function_decl, have template_decl in warn_hidden, at cp/class.c:2824

2014-09-25 Thread cas43 at cs dot stanford.edu
: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu When trying to compile this: class A {virtual void f();}; class B : public A {template

[Bug c++/66690] New: error: use of ‘X’ before deduction of ‘auto’

2015-06-27 Thread cas43 at cs dot stanford.edu
++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- PROBLEM: When compiling the (invalid) code below, two diagnostics are issued. The first is valid (constructor is private). The second diagnostic is perplexing. Fixing the

[Bug c++/116646] New: Compilation of code inside if constexpr with failed condition.

2024-09-08 Thread cas43 at cs dot stanford.edu via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cas43 at cs dot stanford.edu Target Milestone: --- When compiling the following code (g++ -std=c++20 file.cpp): static const int y=0; void f() {if constexpr(y<0){static_assert(

[Bug c++/116646] Compilation of code inside if constexpr with failed condition.

2024-09-09 Thread cas43 at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116646 --- Comment #4 from Craig Schroeder --- Thank you for taking the time to explain this. I understand why the code snippet does not work now.