[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++/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++/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

[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<n;i++) for(int j=0;j<=i;j++) x[i+j]++; } PRODUCES

[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

[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++/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<A::x>" but the input contains "B<A::x>". The compiler has replaced the templ

[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

[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

[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 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 cas43 at cs dot stanford.edu --- Created attachment 32930 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=32930action=edit More practical (but more complex) example I am trying to optimize an auto

[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=32927action=edit Output of the The following function

[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 cas43 at cs dot stanford.edu --- 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

[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: templateclass T struct A { }; templateclass S,class T struct B { Aint ddx; templateclass U,class V decltype(f(AU(),ddx

[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=30898action=edit Program that triggers ICE When compiling the attached program like

[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 cas43 at cs dot stanford.edu --- Unfortunately that is because I tried cleaning up the test case some more after reducing it down. How about this: namespace std { template class _E class initializer_list

[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++ prog.cpp

[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

[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: template class _E class initializer_list {}; template int N struct D {D(std

[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++/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

[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

[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/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

[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:

[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:

[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++/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 cas43 at cs dot stanford.edu 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

[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 cas43 at cs dot stanford.edu 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

[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 cas43 at cs dot stanford.edu 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

[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:

[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:

[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