Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: potrepa...@asc-ural.ru
main.c
--
int test = (6, 9) + 1;
int main( void ) { return 0; }
--
>gcc main.c
main.c:1:1: error: initializer element is not constant
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60837
ilya changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
Severity: minor
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: potrepa...@asc-ural.ru
main.c:
-
int test = (0 ? (3, 0) : 0) + 1;
int main( void ) { return 0; }
-
>gcc main.c
main.c:1:12: warn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60838
--- Comment #1 from ilya ---
Another testcase:
main.c
-
int test1 = (0 ? 0 : 0) + 1;
int test2 = (0 ? (3, 0) : 0) + 1;
int test3[(0 ? 0 : 0) + 1];
int test4[(0 ? (3, 0) : 0) + 1];
int main( void ) { return 0; }
-
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: potrepa...@asc-ural.ru
There is redundant read when write to volatile member of packed structure:
exti.c:
---
typedef struct
{
volatile unsigned int IMR;
volatile unsigned