Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
void f ( ) {
const int tbl [ ( long ) "h" ] = { 12 };
}
---
Rum script:
---
cc1plus -o poc poc.c
---
Stack dump:
---
t
++
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
int a{[] ( struct {
---
Run script:
---
cc1plus poc.c
---
Stack dump only says segemantation fault. When I debugged I found the segfault
is caused by an invalid stack
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
struct {
int mem [ ] ;
int b ;
} s = {1};
---
run script:
---
g++ -o poc poc.cpp
---
g++ version:
---
g
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
int main ( void ) {
struct s1 {
int s ;
struct s2 {
int tbl[ sizeof ( struct s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93631
--- Comment #1 from Yongheng Chen ---
POC:
---
int f2 ( int x [ strcmp ( ) ] , int b ) { return c - b ;
}
int ( * f1 ( int a , enum E2 { E = -2 , F , G , H }
b ) ) ( int c , int b ) { if ( a != b ) return f2 ;
return 0 ;
}
int main ( ) { in
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
---
Run command:
---
gcc -o poc poc.c
---
Gcc version:
---
gcc (GCC) 10.0.1 20200208 (experimental)
Copyright (C) 2020 Free
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93577
--- Comment #1 from Yongheng Chen ---
Stack dump:
---
tt.c: In function ‘main’:
tt.c:2:48: warning: implicit declaration of function ‘f’
[-Wimplicit-function-declaration]
2 | struct s { int x [ 16 == ( ( ( sizeof ( ( 3 , f ( ) > 1000 < 5000
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93574
--- Comment #1 from Yongheng Chen ---
Stack dump:
---
tt.c:1:26: error: variable or field ‘y’ declared void
1 | struct s { struct { void y ;
| ^
tt.c: In function ‘main’:
tt.c:7:23: warning: implicit declaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93573
--- Comment #1 from Yongheng Chen ---
Stack dump:
---
tt.c:1:5: error: ‘f1’ declared as function returning a function
1 | int f1 ( char * p ) ( ) { int x ;
| ^~
tt.c: In function ‘f1’:
tt.c:4:9: warning: implicit declaration of fun
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93572
--- Comment #1 from Yongheng Chen ---
Stack dump:
---
tt.c:3:4: error: expected ‘;’, identifier or ‘(’ before ‘short’
3 | } short main ( ) { int x ;
|^
tt.c: In function ‘h’:
tt.c:5:14: warning: comparison between pointer and i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576
--- Comment #6 from Yongheng Chen ---
I see. I will do it for future bugs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576
--- Comment #3 from Yongheng Chen ---
It seems I overwrote Andrew Pinski's comment by mistake. Sorry about that LOL
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576
--- Comment #2 from Yongheng Chen ---
Hi Martin,
I included the CMD line "gcc -o tmp poc.c" in the report but not the stack
dump. Is the stack dump necessary? I didn't include it because I think the POC
is enough to reproduce the problem and the
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
int main ( ) { int x [ ] = { 1 , } ;
struct s { int x [ 16
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
int main ( ) { int x [ ] = { 1 , e } ;
return x [ ( ( char ) p % ( sizeof ( 0 ) < main ) >= ( ( ( char * ( * ( * (
int ( struc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
struct s { struct { void y ;
int z
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
int f1 ( char * p ) ( ) { int x ;
x = 4 ;
if ( ! x != 10 ) return 1 ;
if ( ( sum ( 1 , 2 ) / 2 ) != 1 ) return 1 ;
if
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: changochen1 at gmail dot com
Target Milestone: ---
POC:
---
struct s { int x ;
double y ;
} short main ( ) { int x ;
int h ( x , y ) char arr [ ( 1 , 2 ) - ( ( 1 , 2 ) / 2 ) * 2 ] [ sizeof 0 ] ,
( * p ) [ ] , * q
18 matches
Mail list logo