Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Here is my code:
$cat main.c
struct S2 { int m1; };
int test = 0;
int main() {
struct S2 *p = &(struct S2) (struct S2) {
(test = 0), // gcc re
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84900
--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Richard Biener from comment #1)
> I belive the code is invalid and using literal 0 instead of test = 0
> shouldn't make it accepted either. c
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The code is too long, but I have tried my best to simplify the codes. Raw code
is 14000 lines and now is 218 lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85071
--- Comment #3 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Jonathan Wakely from comment #2)
> Both valgrind and AddressSanitizer would have found this bug, you should use
> them.
I feel so sorry to post this st
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
$ cat a.c
int main() {
int x = 0, y = 0, z = 0;
asm("" : "=ab"(x), "=bc"(y), &
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96365
--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Jakub Jelinek from comment #1)
> Any reason why you can't just write "=a"(x), "=b"(y), "=c"(z) if you mean
> that as
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Code is attached:
```
#include
int set_eax(int val) { return val; }
int main() {
int ax, tmp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346
--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Andrew Pinski from comment #1)
> This code is clearly undefined.
>
> First you say eax is in eax and then then you say the register gets
> clobb
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346
--- Comment #4 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Andrew Pinski from comment #3)
> (In reply to wierton from comment #2)
> > This code can reproduce the phenomenon and there are no output constr
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The reproduce link: https://gcc.godbolt.org/z/T48jbo5e7
The reproducer (diff: `gcc-14 -O0` and `gcc-14 -Os`):
```
int
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
This program:
```
#include
static char a[40];
int main() {
if (__builtin_object_size(&a[0] + 1, 1) == (size_
IRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The code:
```
int main() {
int a = 0;
unsigned long long one = 1;
unsigned long long crf1 = 0;
uns
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/Pn4EG3zzj
```
struct node { void *p; } n;
struct head { struct node *n; } h;
int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114597
--- Comment #3 from wierton <141242068 at smail dot nju.edu.cn> ---
Thanks a lot, I have checked it out.
I'm still somewhat confused. Does the difference in compilation stem from GCC
interpreting "=m" and "=r" di
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/MPzrsv17v
```
#include
#define N 2000
int a[N][N];
int main (void)
{
int i = 0, j = 0;
for (i = 0; i < N
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114598
wierton <141242068 at smail dot nju.edu.cn> changed:
What|Removed |Added
Status|UNCONFIRMED |RE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114597
--- Comment #5 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Xi Ruoyao from comment #4)
> I believe the second form is still incorrect and it just works by luck. To
> ensure it work you have to do:
>
> a
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Reproducer: https://godbolt.org/z/MP7qnTKz6
when compile this with `gcc-14 -O0 -fgimple`, gcc crashes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111809
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
Full stack backtrace:
: In function 'bar':
:8:1: error: SSA name '' with version 3 has no definition
8 | }
| ^
At top level:
cc1: i
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program with `gcc-14 -O0`, gcc crashes:
```
void = {0};
void uninliner_1() {
{}
inline __RTL test(void
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program with GCC-14, GCC crashes:
```
__GIMPLE (ssa) int foo (int *a)
{
return 0;
return 0
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The bug triggering program:
```
static int foo(int x, int y, int z) {
int b;
asm("" : "=a"(b)
, at tree-eh.cc:2733
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Mileston
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The bug triggering program:
```
long long a;
void f(_Complex double x) {
(int *)&__imag(
*(_Complex do
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://godbolt.org/z/ezdG5GGd8
When compile below program with option `-O3 -fno-tree-vrp`, GCC consumes upto
46 seconds to finish:
```
int r;
int r_0
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The bug triggering program:
```
typedef union { char a[1003263430]; }
__attribute__((__packed__)) T;
void f(const void *p) {
unsigned short v;
*(T *)(void *)(&a
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: [https://gcc.godbolt.org/](https://gcc.godbolt.org/)
Here is the code snippet that is causing the issue:
```c
unsigned char a[1];
unsigned char b;
void f(void
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111833
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
The compiler explore link above is broken, here is the link:
https://gcc.godbolt.org/z/779zzjcze
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/7d63G6fWT
Testcase is pasted below:
```
void *retaddr;
void foo (void
t gimple-expr.cc:265
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: --
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program with option `-fopenmp-simd`, gcc crashes:
```
typedef void T;
int array[1000];
#pragma omp declare simd
c/c-parser.cc:16234
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program, gcc crashes:
```
register unsigned long x asm("rsp");
struct {
int a;
} * p asm("rsp&q
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/h9MMnxbvK
When compile this program with option -O2, gcc crashes
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The ICE trigger:
```
void f() {
__builtin_eh_return_data_regno(-1);;
}
```
Verification link: https://gcc.godbolt.org/z
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
I am uncertain whether this program contains undefined behavior, the testcase
is:
```
extern void abort (void);
void test(double f, double i)
{
if (i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111887
--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
Thanks for you reply, I got it!
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program, GCC crashes:
```
int main(void) {
if !((_Bool)(__INT_MAX__ + 1
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this small program:
```
int a;
int f() { return __transaction_atomic (a || 1); }
```
GCC crashes
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program with `-O1`, gcc crashes:
```
int f(unsigned int x, unsigned int y)
{
return __builtin_popcount (x&a
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/Yn354q5zP
When compile this program with `-O0`, gcc crashes:
```
__attribute__((always_inline))
void f(int n, int
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program, GCC crashes:
```
void
foo (int * __restrict a, int
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program with GCC, gcc segfaults:
```
_Atomic(int) a;
const double b;
int main(void) {
void f(void *arg) { return ; }
return a |= b
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer:
[https://gcc.godbolt.org/z/EoPGKa9r8](https://gcc.godbolt.org/z/EoPGKa9r8)
The code that triggers the crash is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111922
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
Compiler Explorer: https://gcc.godbolt.org/z/EoPGKa9r8
The link above seems broken.
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/3n34j7fPT
When try to compile this program with `gcc-14 -O2`:
```
unsigned long flg = 0;
int n_1 = {0};
__attribute__((always_inline
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler explorer: https://gcc.godbolt.org/z/fjErPvrvP
When compile this program with `gcc-14 -O1`, gcc crashes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112486
wierton <141242068 at smail dot nju.edu.cn> changed:
What|Removed |Added
Status|UNCONFIRMED |RE
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler explorer: https://gcc.godbolt.org/z/h9aen36q7
When compile this program with `gcc-14 -O1`, gcc ICEs
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/89rPW14fv
When compile this program
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/971ccPba8
When tries to compile this program with `gcc-14 -O1`, gcc
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/cPPxenx7q
When compile this program with `-Og -fno-tree-copy-prop
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/7sM17Pfbb
When compile this program with `gcc-14 -O1`, gcc ICEs:
```
typedef struct { int v; } T1;
typedef struct
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112495
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
Correction: It should be -O3.
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/7aq3hjbjK
When compile this
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/MdacfWqhr
When attempting to compile this program with `gcc-14 -O1
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/PbTj4Gq3r
When compiling this program with `gcc-14 -O0`, gcc crashes
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/65TGaK86r
When compiling this program with `gcc-14 -O1`, gcc crashes:
```
short b
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/WP94TWqj5
When compiling this program with `gcc-14 -O1`, gcc crashes
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/erEvbYYKc
When compiling this program with `gcc-14 -O1`, gcc crashes
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/YdETsKzeb
When compiling this program with `gcc-14 -O0`, gcc crashes
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/nTjnh73xj
The crash triggering program (compile with `gcc-14 -O3
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/151vEnafj
When compiling this program with `gcc-14 -O2 -fno-tree-vrp -fno
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/E457vrbGM
When compiling this program with `gcc-14 -O2`, gcc ICEs
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/jG4PfK845
When compiling this program with `gcc-14 -Og`, gcc ICEs
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The bug-triggering testcase:
```
$ cat c.c
static int t;
int f_tt;
int f(void) {
int tt1;
asm("" : "=r"(f_tt), "=r&qu
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Below is the testcase:
```
int foo(int a0, int a1, int a2, int a3, int a4, int a5,
int a6, int a7, int a8, int a9, int a10, int a11,
int a12, int a13, int a14
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109917
--- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> ---
(In reply to Andrew Pinski from comment #1)
> Dup of bug 109520.
>
> Where is this code located anyways?
>
> *** This bug has been marked as a du
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
This behavior can be verified on https
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110154
wierton <141242068 at smail dot nju.edu.cn> changed:
What|Removed |Added
Resolution|--- |I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96365
wierton <141242068 at smail dot nju.edu.cn> changed:
What|Removed |Added
Status|UNCONFIRMED |RE
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The program:
```
$ cat sma
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The testcase:
```
void __GIMPLE
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The testing program:
```
typedef long unsigned int size_t;
void *memcpy(void *, const void *, size_t);
int snprintf(char
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compiling below program using gcc-14 with option `gcc-14 -Ofast a.c`,
gcc-14 crashes:
```
#include
#include
void f
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compiling below program using gcc-14 with option `gcc-14 -Ofast a.c`,
gcc-14 crashes:
```
struct a {
const signed
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compiling below program using gcc-14 with option `gcc-14 a.c`, gcc-14
crashes:
```
char global;
void bar (void);
void __GIMPLE (ssa)
foo (char * p)
{
__BB(2):
if
: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compiling below program using gcc-14 with option `gcc-14
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The bug triggering program:
```
long double a, b;
long double f(long double x) {
asm("sqxbr\t%0,%1" : "
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110736
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
It looks like this is similar to bug 110667, but ICEs under different
optimization option (-Ofast with -Os).
: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When attempting to compile below program using gcc-14 with
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler Explorer: https://gcc.godbolt.org/z/79oo9rsxj
When compiling this with `gcc-trunk -O2`, gcc crashes.
This only occurs in
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler explorer: https
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Quick verification link: https://gcc.godbolt.org/z/fdY8KqhK6
The testing program:
```
void foo ()
{
int p[5];
int v = *p;
int *p
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
Compiler explorer: https://gcc.godbolt.org/z/rax1zezbc
The testing program:
```
#include
struct S {
unsigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115644
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
This crash seems to be the same cause: https://gcc.godbolt.org/z/6br3xoaKG
The testing program:
```
void f()
{
int p;
unsigned v;
v = (~0u) >> p;
int p[1] = p;
}
```
86 matches
Mail list logo