[Bug c++/95936] New: ICE in splice_late_return_type, at cp/pt.c:29114

2020-06-27 Thread haoxintu at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc. reduced by C-Reduce, makes GCC-trunk ICE. $cat bug.cc typedef (*a)()->const = $g++ -fpermissive -w bug.cc bug

[Bug c++/95937] New: ICE in finish_class_member_access_expr, at cp/typeck.c:3133

2020-06-27 Thread haoxintu at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, reduced by C-Reduce, makes GCC-trunk ICE. $cat bug.cc void a { [].decltype(auto)::b

[Bug c++/95938] New: ICE in synthesize_implicit_template_parm, at cp/parser.c:44077

2020-06-27 Thread haoxintu at gmail dot com
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, reduced by C-Reduce, makes GCC-trunk ICE. $cat bug.cc a ( union { auto $g

[Bug c++/95972] New: ICE in check_member_template, at cp/decl2.c:570

2020-06-29 Thread haoxintu at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, reduced by C-Reduce, makes GCC-trunk ICE. $cat bug.cc a() { [] ( struct { b ( auto $g++ -w bug.cc

[Bug c++/95672] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584

2020-06-14 Thread haoxintu at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- $cat bug.cc struct g_class : decltype (auto) ... { } ; $g++ bug.cc bug.cc:1:35: internal compiler error: in cxx_incomplete_type_diagnostic

[Bug c++/95672] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584

2020-06-14 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95672 --- Comment #1 from Haoxin Tu --- Noted that from GCC 6.1 to the trunk versions have this ICE, too.

[Bug c++/95672] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:584

2020-06-15 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95672 --- Comment #3 from Haoxin Tu --- (In reply to Martin Liška from comment #2) > Is it an invalid code right? Yes. I think it's not a valid code and other compilers do not accept it, too.

[Bug c++/95809] New: GCC treats inline namespace declaration as "ambiguous"

2020-06-22 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, GCC fails to compile it, while clang, icc, or msvc accepts it well. $cat bug.cc namespace g_namespace

[Bug c++/95807] GCC accepts "void value not ignored as it ought to be" in function template

2020-06-22 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95807 --- Comment #4 from Haoxin Tu --- (In reply to Jonathan Wakely from comment #3) > The ill-formed template is not diagnosed unless you instantiate it. > That is allowed by the standard. Thank you Jonathan, thanks for your response. As other

[Bug c++/95807] New: GCC accepts "void value not ignored as it ought to be" in function template

2020-06-21 Thread haoxintu at gmail dot com
Keywords: accepts-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- GCC accepts "void value not ignored as it ought to be" in a function

[Bug c++/95807] GCC accepts "void value not ignored as it ought to be" in function template

2020-06-21 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95807 --- Comment #2 from Haoxin Tu --- (In reply to Andrew Pinski from comment #1) > I think it is rejected at instanition time. Hi, Andrew. Shouldn't it be rejected at compiling time? Please take a look at another case, test.cc $cat test.cc void

[Bug c++/95807] GCC accepts "void value not ignored as it ought to be" in function template

2020-06-22 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95807 --- Comment #6 from Haoxin Tu --- (In reply to Jonathan Wakely from comment #5) > What practical impact does this have on any real world code? > Why should we spend time on that, rather than the million other things we > have to fix? Hi,

[Bug c++/95820] New: ICE in splice_late_return_type, at cp/pt.c:29034

2020-06-22 Thread haoxintu at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case bug.cc, reduced by C-Reduce, crashed GCC. $cat bug.cc constexpr (*a)()->bool, $g++ -w -fpermissive small.cc bug.cc:1

[Bug c++/95820] ICE in splice_late_return_type, at cp/pt.c:29034

2020-06-22 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95820 --- Comment #1 from Haoxin Tu --- (In reply to Haoxin Tu from comment #0) > $g++ -w -fpermissive small.cc Here is a mistake, and it should be $g++ -w -fpermissive bug.cc

[Bug c++/95819] New: ICE: Segmentation fault signal terminated program cc1plus

2020-06-22 Thread haoxintu at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case bug.cc, reduced by C-Reduce, makes GCC crashed. $cat bug.cc wchar_t a = [] (struct { $g

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #6 from Haoxin Tu --- Hi, there. I hold the view that the compiler should have good fault tolerance, which means giving an input(even invalid), the compiler might emit appropriate error message diagnostics so that we can fix them

[Bug c++/95945] New: ICE in poplevel, at cp/decl.c:585

2020-06-28 Thread haoxintu at gmail dot com
: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code, bug.cc, reduce by C-Reduce, makes GCC-trunk ICE. $cat bug.cc a ( auto struct { b ( $g++ -w bug.cc bug.cc:1:17: error: types may

[Bug c++/95892] Wrong line number in "-Wsign-conversion" warning message

2020-06-26 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95892 --- Comment #5 from Haoxin Tu --- (In reply to Jonathan Wakely from comment #4) > Yes, thanks, I've closed that one as a duplicate too. Ok, you are so welcome. By the way, could you please check other diagnostic issues (bug95871, bug95872,

[Bug c++/95892] New: Wrong line number in "-Wsign-conversion" warning message

2020-06-25 Thread haoxintu at gmail dot com
diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com CC: mpolacek at gcc dot gnu.org Target Milestone: --- This code, bug.cc, GCC might give the wrong line number

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-18 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #7 from Haoxin Tu --- By the way, can you take a look at bug 95597 and bug 95659? I think GCC should accept the first case and shouldn't miss the error message in the second code. Those cases are different from this report.

[Bug c++/95559] GCC fails to compile "{{}}" in some versions

2020-06-09 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559 --- Comment #2 from Haoxin Tu --- (In reply to Marek Polacek from comment #1) > I can't find a version of GCC that compiled this. Hi, so sorry I might use the wrong test case. Please try this case bug.cc instead #include int main(){ int

[Bug c++/95559] GCC fails to compile "{{}}" in some versions

2020-06-09 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559 --- Comment #3 from Haoxin Tu --- (In reply to Haoxin Tu from comment #2) > $g++-8 test.cc ; ./a.out > 0 Here is > $g++-8 bug.cc ; ./a.out > 0

[Bug c++/95559] GCC accepts "too many braces around scalar initializer " in the version of 6.1 - 8.4

2020-06-10 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559 --- Comment #5 from Haoxin Tu --- (In reply to Marek Polacek from comment #4) > That's the same case, initializing an int with {{}}. GCC 8 compiled the > second testcase, but that was fixed in r269045. Ok, got it. At least this was a bug, can

[Bug c++/65969] typename allowed in using declaration of non-types names

2020-06-05 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65969 Haoxin Tu changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment #3

[Bug c++/95559] New: Compiling "{{}}" result is inconsistent in different versions

2020-06-05 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case test.cc #include int main() { return {{}}; } In the version of GCC 6.1 - 8.4, it's compiled ok. But in GCC 6.1 low

[Bug c++/95564] New: GCC rejects lambda expression with "noexcept(1+1)"

2020-06-06 Thread haoxintu at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code test.cc int main(){ auto a = [ & ] (...) noexcept(1+1) {}; return 0; } $g++-trunk test.cc test.cc:2:38: error: narrowing conversion of

[Bug c++/95610] New: GCC fails to get global variable via "::" in class specifier

2020-06-09 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case test.cc class s; class ::s { } ss; $g++ -c test.cc test.cc:2:11: error: global qualification of class name is inva

[Bug c++/95641] New: Bogus error message in the class base specifier

2020-06-11 Thread haoxintu at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code bug.cc class A {}; class B : virtual class A{}; In gcc-trunk $g++ -c bug.cc bug.cc:2:19: error: expected class-name before ‘class’ 2 | class B : virtual class

[Bug c++/95657] New: Bogus error message in "auto" with -std=c++11

2020-06-12 Thread haoxintu at gmail dot com
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code bug.cc decltype (auto) foo( decltype (auto) a ){ } in GCC-trunk $g++ -c -std=c++11 bug.cc bug.cc:1:11: error: expected primary-expression before ‘a

[Bug c++/95656] New: Inconsistent output in compiling an undefined function

2020-06-12 Thread haoxintu at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code bug.cc #include int main(){ int a (); std::cout << a << std::endl; return 0; } In GCC-trunk without "-fsanitize=undefined"

[Bug c++/95658] New: Bogus duplicate error message in "decltype(auto)" type specifier

2020-06-12 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This code bug.cc in GCC 8.1 - 9.3 gives the bogus duplicate error messages. $cat bug.cc decltype (auto) var = 0; Take GCC-9, G

[Bug c++/95659] New: Inconsistent error message in "default argument missing for parameter"

2020-06-12 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- $cat bug.cc int a; long foo1 ( void = a, double param2 ,decltype (auto) param3 = a){ } long foo2 ( void = a, doub

[Bug c++/95597] New: Rejects using-declaration with "typename" in global area

2020-06-08 Thread haoxintu at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- This case test.cc typedef int T; using typename ::T; GCC fails to compile it. $g++ -c test.cc test.cc:2:18: error: expected n

[Bug c++/96219] New: New Feature (c++ core 727): explicit specialization in class definition should be allowed

2020-07-16 Thread haoxintu at gmail dot com
Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi,all. http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#727

[Bug c++/96137] [11 Regression] GCC hang on in invalid function definition

2020-07-28 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96137 --- Comment #4 from Haoxin Tu --- Add two cases. I guess the reason is the same. //case1 static_assert (->operator a, "") //case2 alignas (->operator a)

[Bug c++/96184] GCC treats "use of local variable with automatic storage from containing function" differently in versions

2020-07-28 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96184 --- Comment #1 from Haoxin Tu --- This behavior still exists in the current trunk. Is this a bug or not? Thanks

[Bug c++/96364] New: ICE on valid code in cp_finish_decl, at cp/decl.c:7537

2020-07-28 Thread haoxintu at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. Weirdly, this simple valid code makes GCC ICE (clang,icc,or msvc accepts this code). Input: //small.cc auto

[Bug c++/96360] New: ICE in tree check: expected integer_cst, have truth_orif_expr in get_len, at tree.h:5954

2020-07-28 Thread haoxintu at gmail dot com
Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. This invalid code makes GCC ICE and without any error diagnostic

[Bug c++/96359] New: ICE in cxx_eval_logical_expression, at cp/constexpr.c:3875

2020-07-28 Thread haoxintu at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. This invlaid code makes GCC ICE. What shocked me is that when I change

[Bug c++/96379] New: [ 10/11 Regression ] GCC accepts totally invalid template declaration

2020-07-29 Thread haoxintu at gmail dot com
-invalid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. Input: //small.cc const int a = 0; const long b = 1 ; enum struct c; template enum

[Bug c++/96380] New: [10/11 Regression] ICE in tree check: expected integer_cst, have view_convert_expr in get_len, at tree.h:5954

2020-07-29 Thread haoxintu at gmail dot com
Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. This invalid code makes

[Bug c++/96329] New: [11 Regression] ICE : tree check: expected string_cst, have error_mark in cp_parser_linkage_specification, at cp/parser.c:14640

2020-07-27 Thread haoxintu at gmail dot com
Version: 11.0 Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone

[Bug c++/96328] New: Singe keyword "friend" makes GCC ICE in cp_lexer_previous_token, at cp/parser.c:769

2020-07-26 Thread haoxintu at gmail dot com
NCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. Weirdly, a single "friend&quo

[Bug c++/96636] New: ICE in build_value_init_noctor, at cp/init.c:451

2020-08-16 Thread haoxintu at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Input: //small.cc typedef class { class a {}; class : virtual a {}; } b; void foo(){ b{};} Command: g++ small.cc Output: small.cc: In function ‘void foo()’: small.cc:5

[Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169

2020-08-16 Thread haoxintu at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Input: //small.cc void foo(int[] alignas[1] alignas()){} Command: g++ small.cc Output: small.cc:1:23: error

[Bug c++/96637] New: ICE in tree check: expected tree_list, have error_mark in cp_check_const_attributes, at cp/decl2.c:1423

2020-08-16 Thread haoxintu at gmail dot com
: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Input: //small.cc void foo(int[] alignas[1

[Bug tree-optimization/98051] ICE in logical_combine, at gimple-range-gori.cc:754 in O2-Os

2020-11-29 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98051 --- Comment #3 from Haoxin Tu --- (In reply to H.J. Lu from comment #2) > Please try the current master branch. Ok, I can't reproduce it in the current trunk, either. Will check more next time before I submit a report. BTW, could you please

[Bug target/97969] [9/10/11 Regression][ARM/Thumb] Certain combo of codegen options leads to compilation infinite loop with growing memory use

2020-12-05 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97969 Haoxin Tu changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment #7

[Bug target/97969] [9/10/11 Regression][ARM/Thumb] Certain combo of codegen options leads to compilation infinite loop with growing memory use

2020-12-07 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97969 --- Comment #12 from Haoxin Tu --- (In reply to Paul Sokolovsky from comment #11) Awesome! I got your main idea here. Thank you very much, Paul! Best, Haoxin

[Bug target/97969] [9/10/11 Regression][ARM/Thumb] Certain combo of codegen options leads to compilation infinite loop with growing memory use

2020-12-07 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97969 --- Comment #9 from Haoxin Tu --- (In reply to ktkachov from comment #8) > When I had to do it in the past I've used the 'ulimit' command in linux. > That allows you to kill a process if it exceeds a time limit (ulimit -t) or > a memory limit

[Bug c/98050] New: in logical_combine, at gimple-range-gori.cc:754

2020-11-29 Thread haoxintu at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: ---

[Bug c/98050] in logical_combine, at gimple-range-gori.cc:754

2020-11-29 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98050 Haoxin Tu changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug c/98051] ICE in logical_combine, at gimple-range-gori.cc:754 in O2-Os

2020-11-29 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98051 --- Comment #1 from Haoxin Tu --- *** Bug 98050 has been marked as a duplicate of this bug. ***

[Bug c/98051] New: ICE in logical_combine, at gimple-range-gori.cc:754 in O2-Os

2020-11-29 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. The small.cc makes GCC-trunk crash under O2~Os, while O0-O1 is fine. $cat small.c #include void

[Bug tree-optimization/98074] New: [9/10 Regression] C Wrong code at O2~Os

2020-11-30 Thread haoxintu at gmail dot com via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- $cat small.c #include #include struct { int64_t a; } b; struct c { signed d : 9; signed a : 21; signed e : 1; }; int f, g; uint16_t h() { struct c aa = {0

[Bug tree-optimization/100512] [12 Regression] ICE during GIMPLE pass: cddce in mark_operand_necessary, at tree-ssa-dce.c:173 (under -O2 to -Os)

2021-05-10 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100512 --- Comment #1 from Haoxin Tu --- (In reply to Haoxin Tu from comment #0) > $gcc -w -O2 Sorry, it's an incomplete command here. It should be "gcc -w -O2 small.c".

[Bug tree-optimization/100512] New: [12 Regression] ICE during GIMPLE pass: cddce in mark_operand_necessary, at tree-ssa-dce.c:173 (under -O2 to -Os)

2021-05-10 Thread haoxintu at gmail dot com via Gcc-bugs
: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. $cat

[Bug target/100626] ICE Segmentation fault (during RTL pass: split1)

2021-05-16 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626 --- Comment #1 from Haoxin Tu --- Another test case that crashes on all -O1 to -Os. $cat small.c #include int uc_4, i_5, us_7; void fn1() { int li_18; int64_t *ptr_43 = _18; for (; us_7;) { fn2(); *ptr_43 ^= uc_4; } i_5 =

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626 --- Comment #4 from Haoxin Tu --- I found that it also crashes (under -O1 and -Os) on today's trunk version of GCC. $cat small.c #include int a; void b() { int c; uint64_t *d = uint8_t *e; if (a) *d &= *e; if (*d) for (;;)

[Bug tree-optimization/100578] New: [12 Regression] ICE Segmentation fault during GIMPLE pass: fre (under -g -O2/O3/Os)

2021-05-12 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. $cat small.c #include void a() { int b; c: int8_t d = 3; if (b |= d ^= a >

[Bug tree-optimization/100626] New: ICE Segmentation fault (during RTL pass: split1)

2021-05-16 Thread haoxintu at gmail dot com via Gcc-bugs
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. I don't know if there is a dup of this. I have searched but failed. $cat small.c #include int uc_4, i_5, us_7; void fn1() { int li_18; int64_t

[Bug tree-optimization/100349] New: [11/12 Regression] ICE Segmentation fault during GIMPLE pass: evrp (under -O2 to -Os)

2021-04-30 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, all. $cat small.c #include uint8_t a; b(int8_t c) { int d; e: uint32_t f

[Bug c/99880] New: ICE in maybe_set_vectorized_backedge_value, at tree-vect-loop.c:9161

2021-04-01 Thread haoxintu at gmail dot com via Gcc-bugs
-on-valid-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. This valid program makes GCC crash at -O3. GCC-10 also incurs an ICE with a Segmentation

[Bug tree-optimization/99947] New: [11 Regression] ICE Segmentation fault "during GIMPLE pass: vect"

2021-04-06 Thread haoxintu at gmail dot com via Gcc-bugs
e-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. $cat small.c #include int a, b, d, e; int16_t c; void f() { f

[Bug tree-optimization/99947] [11 Regression] ICE Segmentation fault "during GIMPLE pass: vect" since r11-4714-g092cdbd919849759

2021-04-07 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99947 --- Comment #7 from Haoxin Tu --- Thank you all for your quick response and fixing! Cheers, Haoxin

[Bug middle-end/99694] [9 Regression] gcc: fatal error: Killed signal terminated program cc1 under -O2 to -Os since r9-7156-g33579b59aaf02eb7

2021-03-27 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99694 --- Comment #7 from Haoxin Tu --- (In reply to Martin Liška from comment #1) > Confirmed, started with r9-7156-g33579b59aaf02eb7. Hi Martin. I am sorry to bother you, and I just have a question about how to find a bad commit quickly in GCC. As

[Bug c/99694] New: gcc: fatal error: Killed signal terminated program cc1 under -O2 to -Os

2021-03-21 Thread haoxintu at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. GCC takes too much compiling time and then crashes on the valid small.c under -O2 to -Os. Also, all GCC-9 upward versions

[Bug target/102057] New: ICE at -O2 in extract_constrain_insn, at recog.c:2670

2021-08-25 Thread haoxintu at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. This program makes GCC ICE. I think this program is syntactically valid and GCC should not emit any error. I found

[Bug c/102356] New: compile-time explosion at -O3

2021-09-15 Thread haoxintu at gmail dot com via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. It's quite weird that the following small valid program makes GCC spend too much time on compiling at -O3 with the "-g" enabled. It seem

[Bug middle-end/99694] [9 Regression] gcc: fatal error: Killed signal terminated program cc1 under -O2 to -Os since r9-7156-g33579b59aaf02eb7

2021-08-04 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99694 --- Comment #11 from Haoxin Tu --- Hi all. I hope you all are doing well. I am sorry to bother you again. May I ask a quick question about how do you treat the bug-revealing test case which may include the valid syntax but contain the UB?

[Bug middle-end/99694] [9 Regression] gcc: fatal error: Killed signal terminated program cc1 under -O2 to -Os since r9-7156-g33579b59aaf02eb7

2021-08-04 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99694 --- Comment #13 from Haoxin Tu --- (In reply to Martin Liška from comment #12) Ok, got you. Thanks for your speedy reply~

[Bug middle-end/99694] [9 Regression] gcc: fatal error: Killed signal terminated program cc1 under -O2 to -Os since r9-7156-g33579b59aaf02eb7

2021-08-04 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99694 --- Comment #17 from Haoxin Tu --- Thank you all for the detailed clarification! I have got the answer now. Let's try together to make compilers a better place:)

[Bug tree-optimization/102561] New: [12 Regression] ICE Segmentation fault during GIMPLE pass: evrp (on -O2 and above)

2021-10-01 Thread haoxintu at gmail dot com via Gcc-bugs
Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. It appears to be a quite recent regression issue. $cat

[Bug tree-optimization/102561] [12 Regression] ICE Segmentation fault during GIMPLE pass: evrp (on -O2 and above)

2021-10-01 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102561 --- Comment #1 from Haoxin Tu --- Similar case: #include int a; void b(int c) { uint16_t d; uint16_t *e; int16_t f; int64_t g; if ((g || (d = 0)) == c << (0 <= (*e ^= c))) *e - f && (a = d); } Error: during GIMPLE pass:

[Bug ipa/103513] New: [12 Regression] ICE in evaluate_conditions_for_known_args, at ipa-fnsummary.c:516 with -O2 and above

2021-11-30 Thread haoxintu at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone

[Bug tree-optimization/103204] New: [11/12 Regression] ICE: in vn_reference_insert_pieces, at tree-ssa-sccvn.c:3842 (on -O2 and above)

2021-11-11 Thread haoxintu at gmail dot com via Gcc-bugs
: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. $cat small.c #include int a[][1]; int b

[Bug tree-optimization/103222] New: [12 Regression] wrong code at -O2 and above on x86_64-linux-gnu

2021-11-13 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. $cat small.c #include #include int16_t a; static uint32_t *b ; static uint8_t

[Bug tree-optimization/103222] [12 Regression] wrong code at -O2 and above on x86_64-linux-gnu

2021-11-13 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103222 --- Comment #6 from Haoxin Tu --- (In reply to Aldy Hernandez from comment #5) > fixed Thank you for the quick fixing!

[Bug tree-optimization/103209] New: [12 Regression] wrong code at -O1 on x86_64-linux-gnu

2021-11-12 Thread haoxintu at gmail dot com via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. It seems to be a recent regression issue. $cat small.c #include #include int32_t a[6]; int64_t b; int32_t *c

[Bug tree-optimization/103237] New: wrong code with -ftree-vectorize at -O1 on x86_64-linux-gnu

2021-11-14 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. This seems a long latent bug existed after GCC-10.1. $cat small.c #include #include

[Bug tree-optimization/103219] New: [12 Regression] ICE Segmentation fault at -O3 (during GIMPLE pass: unrolljam)

2021-11-12 Thread haoxintu at gmail dot com via Gcc-bugs
: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. I am not sure whether there is a dup but it appears

[Bug tree-optimization/110705] New: ICE at -O2 and above: in gimplify_modify_expr, at gimplify.cc:6255 (on GCC-12.x)

2023-07-17 Thread haoxintu at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, GCC-12.0 to GCC-12.3 versions fail to compile the following code. $cat small.c struct a { long b

[Bug tree-optimization/110129] New: Possible wrong-code on -O2 and above (affecting versions from GCC-10.1 onward)

2023-06-05 Thread haoxintu at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi, Please consider the following code, which makes GCC output different results on -O0/1 and -O2/3/s. Note

[Bug tree-optimization/110129] Possible wrong-code on -O2 and above (affecting versions from GCC-10.1 onward)

2023-06-05 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110129 --- Comment #2 from Haoxin Tu --- (In reply to Andrew Pinski from comment #1) Oops, my bad. Thank you for pointing this out. I didn't notice the front-end is C++ in GodBolt. I have another similar case, can you take a look, please? ```

<    1   2